- use expect script
1
2
3
4
5#!/usr/bin/expect -f
spawn ssh -D 7070 fred@oracle1.com
expect "password:"
send "yourpassword\r"
interact - use firefox addon “autoproxy” to visit Inertnet.
一个Web开发者的博客
1 2 3 4 5 | #!/usr/bin/expect -f spawn ssh -D 7070 fred@oracle1.com expect "password:" send "yourpassword\r" interact |
Recent Comments