Create ssh_to_DUT.sh
This commit is contained in:
9
utility_to_sdk/ssh_to_DUT.sh
Normal file
9
utility_to_sdk/ssh_to_DUT.sh
Normal 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
|
||||||
Reference in New Issue
Block a user