ssh连接脚本

    xiaoxiao2021-03-25  108

    #!/usr/bin/expect set timeout 10 set username [lindex $argv0] set passwd [lindex $argv1] set hostname [lindex $argv2] spawn ssh $username@$hostname expect "*password:" send "passwd\r" interact

     

    转载请注明原文地址: https://ju.6miu.com/read-24153.html

    最新回复(0)