31ece2e99a
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 lines
266 B
Plaintext
Executable File
10 lines
266 B
Plaintext
Executable File
#!/usr/bin/expect -f
|
|
log_user 1
|
|
exp_internal 0
|
|
set timeout 30
|
|
spawn ssh -v -o PreferredAuthentications=password -o PubkeyAuthentication=no -o StrictHostKeyChecking=accept-new root@192.168.3.90 "exit"
|
|
expect {
|
|
"*assword:*" { send "123456\r"; exp_continue }
|
|
eof
|
|
}
|