You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/expect -f
set USER cheungseol // username
set HOST 1.1.1.1 // fake host addr
set PASSWORD test123 // password
set timeout -1 // expect mode never time out
spawn ssh $USER@$HOST
expect "*assword:*"
send "$PASSWORD\r"
# expect eof
interact
The text was updated successfully, but these errors were encountered:
脚本ssh登录开发机
test.sh
chmod a+x test.sh
The text was updated successfully, but these errors were encountered: