#!/usr/bin/expect -f
set timeout -1
spawn ssh username@xxx.xxx.xxx.xxx
expect "*assword:*"
send "password\n"
interact
mac & liunx ssh 自动登录
最新推荐文章于 2022-10-03 10:03:44 发布
#!/usr/bin/expect -f
set timeout -1
spawn ssh username@xxx.xxx.xxx.xxx
expect "*assword:*"
send "password\n"
interact