摘要: 通过expect免自动输入密码登陆远程服务器 1、前提必须已经安装expect 2、新建login.sh,文件内容如下 #!/usr/bin/expect -f spawn ssh root@140.10.10.52expect "password:"send "passwordR\r"intera 阅读全文
posted @ 2017-05-11 13:11 何石-博客 阅读(375) 评论(0) 推荐(0) 编辑