item2訪問服務器免登錄配置

1. 在本地生成一個login.exp文件,文件內容如下: #!/usr/bin/expect set timeout 30 spawn ssh [lindex $argv 0] expect {     "(yes/no)?"     {send "yes\n";exp_continue}     "password:"     {send "[lindex $argv 1]\n"} } int
相關文章
相關標籤/搜索