会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
安东尼漂流记
博客园
首页
新随笔
管理
2019年3月5日
centos下使用shell+expect远程登录主机
摘要: # 安装expect yum install expect # 新建脚本文件running #!/usr/bin/expect spawn /usr/bin/ssh root@114.114.114.114 -p 6666 # 用户名、IP地址、端口号自行设置 expect "password:" send "remoteComputerPassword\r" # 密码请自行设置 expect...
阅读全文
posted @ 2019-03-05 19:24 Done、
阅读(672)
评论(0)
推荐(0)
编辑