dotfiles/examples/expect/loginkvm.exp

10 lines
175 B
Plaintext
Raw Normal View History

2021-09-07 20:24:01 +00:00
#!/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