linux ssh 自动登录
2014-03-20 09:16
253 查看
#!/usr/bin/expect
set timeout 30
spawn ssh -q user@$argv
expect {
"(yes/no)?" {send "yes\r"; exp_continue}
"password:" {send "xxxxx\r";}
}
interact
set timeout 30
spawn ssh -q user@$argv
expect {
"(yes/no)?" {send "yes\r"; exp_continue}
"password:" {send "xxxxx\r";}
}
interact
相关文章推荐
- Mac OS下配置远程Linux 服务器SSH密钥认证自动登录
- windows 上用xshell使用 ssh自动登录linux
- Linux下的类似于SecureCRT的ssh,telnet自动登录软件
- linux expect详解(ssh自动登录)
- 使用public/private key让putty(ssh)自动登录(以及linux上使用密钥做ssh自动登陆)
- SSH自动登录Linux
- linux expect详解(ssh自动登录)
- 用了一天的时间,linux下expect实现ssh自动登录服务器记,鄙视下网上各种抄来抄去残段子
- 在linux 如何写一个自动用ssh登录重启Apache的脚本
- 使用public/private key让putty(ssh)自动登录(以及linux上使用密钥做ssh自动登陆)
- linux下ssh远程登录/scp远程复制文件/rsync远程同步命令的自动登录
- 使用public/private key让putty(ssh)自动登录(以及linux上使用密钥做ssh自动登陆)
- 用了一天的时间,linux下expect实现ssh自动登录服务器记,鄙视下网上各种抄来抄去残段子
- linux下ssh工具自动登录的实现
- linux shell ssh实现自动登录,并且执行一些操作并返回到当前主机
- linux expect自动登录ssh,ftp
- linux下设置SSH自动登录
- linux expect详解(ssh自动登录)
- [linux] 自动ssh登录
- LINUX 下SSH自动登录