#!/usr/bin/expect -f
spawn ssh root@your server ip
expect "*password:"
send "your server password \r"
expect "*#"
interact
登录服务器脚本
最新推荐文章于 2024-08-17 16:48:31 发布
#!/usr/bin/expect -f
spawn ssh root@your server ip
expect "*password:"
send "your server password \r"
expect "*#"
interact