连接远程主机
#!/usr/bin/expect
set user root
set host yourip
set password yourpass
spawn ssh $user@$host
set timeout 20
expect "*assword:*"
set timeout 20
send "$password
"
expect "root@vultr:"
send "ssserver -c /etc/shadowsocks.json
"
interact
expect eof
alias ssh_login="shell's path"