ssh密码登录

https://stackoverflow.com/a/16928662/8025086

https://askubuntu.com/a/634789/861079

#!/usr/bin/expect -f
spawn ssh user@my.server.com
expect "assword:"
send "mypassword
"
interact
Host Home-raw
    HostName test.com
Host Home
   User netmoon
   Port 22
   ProxyCommand sshpass -pmypass ssh netmoon@%h-raw nc localhost %p
原文地址:https://www.cnblogs.com/buxizhizhoum/p/12111284.html