SSH 免密码登录 #!/usr/bin/expect set server [lindex $argv 0]; set timeout 3 spawn ssh root@your ip expect "passphrase" send "your password\r" interact