Open Yhzhtk opened 9 years ago
#!/usr/bin/expect set server [lindex $argv 0]; set timeout 3 spawn ssh daihui.gu@$server expect "passphrase" send "mypassword\r" interact