摘要:
使用expect实现自动登录的脚。 脚本代码如下: #!/usr/bin/expect set timeout 30 spawn ssh -l username 192.168.1.1 expect "password:" send "ispass\r" interact 1.[#!/usr/b... 阅读全文
posted @ 2014-10-04 11:00
香甜苦咖啡
阅读(331)
评论(0)
推荐(0)