This commit is contained in:
Casper Chang
2022-02-08 17:39:22 +08:00

View File

@@ -0,0 +1,9 @@
#!/usr/bin/expect -f
spawn ssh casperchang@192.168.50.51 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=10 -o ServerAliveInterval=5
expect "word: "
send "casper\r"
# expect "$ "
# ...... ##Various automated commands##
# expect "$ "
# send "exit\r"
interact