会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
何石的博客
博客园
首页
新随笔
联系
订阅
管理
2017年5月11日
通过expect免自动输入密码登陆远程服务器
摘要: 通过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)
编辑