ssh <username>@<host>ssh
ssh -p <port> <username>@<host>spa
#!/usr/bin/expect -f set password <password> set user <username> set host <host> set timeout -1 spawn ssh $user@$host expect "*assword:*" send "$password\r" interact expect eof
腳本保存到某一目錄code