Expect ssh免秘钥登入自动脚本(ssh-copy-id、expect免交互输入脚本)
转自:blog.csdn.net/tantexian
无密钥登录的自动脚本实现:vim auto_ssh.sh #!/usr/bin/expect
set timeout 10
set username [lindex $argv 0]
set password [lindex $argv 1]
set hostname [lindex $argv 2]
spawn ssh-
转载
2017-08-28 22:47:31 ·
942 阅读 ·
0 评论