#!/usr/bin/expect -f
set timeout 300
spawn ssh 用户@IP
expect "*password*"
send "密码"
interact
[linux]spawn免密码登录
最新推荐文章于 2023-03-25 19:45:31 发布
#!/usr/bin/expect -f
set timeout 300
spawn ssh 用户@IP
expect "*password*"
send "密码"
interact

被折叠的 条评论
为什么被折叠?