#!/usr/bin/expect -f
set user your_user_name
set host your_address
set password your_password
set timeout -1
spawn ssh $user@$host
expect "password:*"
send "$password\r"
interact
#!/usr/bin/expect -f
set user your_user_name
set host your_address
set password your_password
set timeout -1
spawn ssh $user@$host
expect "password:*"
send "$password\r"
interact
本文标题:ssh 连接脚本
本文链接:https://www.haomeiwen.com/subject/fdnvaktx.html
网友评论