#! The/usr/bin/expect
Spawn SSH [email protected]
Expect "yes/no"
Send "yes \ r"
Expect "password", "
Send "123456 \ r"
CodePudding user response:
Expect * password: "*" {send your password \ "r"; Interact}Additional interact to leave don't quit!
#! The/usr/bin/expect
Spawn SSH [email protected]
Expect "yes/no"
Send "yes \ r"
Expect "password", "
Send "123456 \ r"
CodePudding user response:
Expect * password: "*" {send your password \ "r"; Interact}Page link:https//www.codepudding.com/os/67305.html