Create ssh_to_DUT.sh

This commit is contained in:
2021-10-28 12:39:18 +08:00
committed by GitHub
parent da3b1585e5
commit 5da5e52220

View File

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