linux expect自动登录ssh,ftp
2015-05-13 10:17
441 查看
ref :http://blog.51yip.com/linux/1462.html
ref :http://www.cnblogs.com/mumuxinfei/p/3833874.html 【有expect的详细讲解】
这里实现了输入目标ip无需输入密码登陆机器的功能。
ref :http://www.cnblogs.com/mumuxinfei/p/3833874.html 【有expect的详细讲解】
这里实现了输入目标ip无需输入密码登陆机器的功能。
#!/usr/bin/expect -f #auto ssh login set timeout 30 set sshhost [lindex $argv 0] spawn ssh yourUserName@$sshhost expect { "*yes/no" {send "yes\r"; exp_continue} "*password*" {send "yourpassword\r"} } interact
相关文章推荐
- linux expect自动登录ssh,ftp
- linux expect自动登录ssh,ftp
- linux expect自动登录ssh,ftp
- [置顶] Linux下用expect实现ssh自动登录并执行脚本
- iTerm2 结合 Linux expect 实现 ssh 自动登陆, 通过跳板机登录服务器内网功能
- linux expect详解(ssh自动登录)
- linux expect详解(ssh自动登录)
- 用了一天的时间,linux下expect实现ssh自动登录服务器记,鄙视下网上各种抄来抄去残段子
- 用了一天的时间,linux下expect实现ssh自动登录服务器记,鄙视下网上各种抄来抄去残段子
- linux expect详解(ssh自动登录)
- linux expect详解(ssh自动登录)
- linux expect详解(ssh自动登录)
- linux expect详解(ssh自动登录)
- python paramiko模块SSH自动登录linux系统进行操作
- Linux 下使用expect自动telnet/ssh cisco设备执行ping测试
- linux expect自动登录ssh,ftp
- linux ssh 安全自动登录
- linux自动登录脚本expect
- python自动登录SSH(暴力破解局网LINUX服务器登录密码)
- 在Linux下设置最简单的ssh安全自动登录