linux expect自动登录ssh,ftp
来源:互联网 发布:java和golang 编辑:程序博客网 时间:2024/05/17 23:33
ref :http://blog.51yip.com/linux/1462.html
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
0 0
- linux expect自动登录ssh,ftp
- linux expect自动登录ssh,ftp
- linux expect自动登录ssh,ftp...
- linux expect自动登录ssh,ftp
- linux expect自动登录ssh,ftp
- linux expect自动登录ssh,ftp
- linux expect自动登录ssh,ftp
- linux expect自动登录ssh,ftp
- linux expect自动登录ssh,ftp
- linux expect自动登录ssh,ftp
- Linux expect自动登录ssh
- linux expect详解(ssh自动登录)
- linux expect详解(ssh自动登录)
- linux expect详解(ssh自动登录)
- linux expect详解(ssh自动登录)
- linux expect详解(ssh自动登录)
- linux expect详解(ssh自动登录)
- Linux下expect的ssh自动登录脚本
- 线程和进程的区别
- 异步任务AsyncTask
- 日经春秋 20150513
- cocos2d-x中CCLabelAtlas的小图片拼接
- sap 长文本像A4纸显示
- linux expect自动登录ssh,ftp
- 【php】手机版访问手机版页面选择“电脑版”之后不回到原来的手机版页面,利用Session实现
- Objective-C static 类方法
- linux操作系统-3进程管理(2)
- shell编程基础(5)---循环指令
- Linux下的UDP通信
- 【Hadoop】MAC下hadoop2.6安装以及执行wordcount
- 日经社説 20150513 「集中期間」後も着実な復興を
- 在ASP.NET MVC3 中利用JSONP跨域登录WEB系统