mirror of https://github.com/elunez/eladmin
push master
parent
807985ec36
commit
afd176ab96
|
@ -52,8 +52,12 @@ jobs:
|
||||||
# Start SSH session
|
# Start SSH session
|
||||||
spawn ssh root@172.235.32.135
|
spawn ssh root@172.235.32.135
|
||||||
|
|
||||||
# Handle the password prompt
|
# Handle the host key verification prompt and password prompt
|
||||||
expect {
|
expect {
|
||||||
|
"Are you sure you want to continue connecting (yes/no/[fingerprint])?" {
|
||||||
|
send "yes\r"
|
||||||
|
exp_continue
|
||||||
|
}
|
||||||
"Password:" {
|
"Password:" {
|
||||||
send "$password\r"
|
send "$password\r"
|
||||||
exp_continue
|
exp_continue
|
||||||
|
|
Loading…
Reference in New Issue