1账号密码方法:保存登录命令文件/var/www/ssh/xxx.txtspawnssh-p22root@192.168.0.2expect{"yes/no"{send"yes\r";exp_continue;}"*password:*"{send"$PASSWORD\r"}}interact2springboardmachinespawnsshwork@192.168.0.2-i/Users/hufeng/yinseexpect"*login*"{send"sshwork@10.10.11.135\r"}expect"*login*"{send"sudosu-root\r"}交互配置