Add 'examples/expect/loginkvm.exp'
This commit is contained in:
parent
ef0d72851d
commit
38bc8ea566
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/expect
|
||||||
|
|
||||||
|
spawn pass luks.gigabarch.vpn
|
||||||
|
expect ":~#"
|
||||||
|
set passoutput $expect_out(buffer)
|
||||||
|
spawn ssh gigabarch -l plantroon
|
||||||
|
expect "assword"
|
||||||
|
send $passoutput\r
|
||||||
|
interact
|
Loading…
Reference in New Issue