当前位置: 首页 > Linux

iterm2配置快速登录服务器

时间:2023-04-06 02:41:41 Linux

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"}交互配置