Solved: SSH tunnel question
Steven W. Orr
steveo at syslang.net
Wed Feb 27 14:50:20 EST 2008
On Wednesday, Feb 27th 2008 at 12:35 -0000, quoth Michael ODonnell:
=>You could execute this command on your work computer:
=>
=> ssh -R 2222:localhost:22 yourHomeComputer
=>
=>...which is saying "start SSH and arrange for the SSH on the
=>Remote end to listen for connections on port 2222 and forward
=>them to port 22 on the Local end". After that, this would
=>work on your home computer:
=>
=> ssh -p 2222 localhost
=>
=>Nothing sacred about 2222 except that it's somewhat mnemonic.
Four Quatloos to Michael!
On the work side:
ssh -R 9876:localhost:22 syslang.net
On the home side:
ssh -v -p 2222 localhost
Don't forget to use whatever -l options are needed and any required -p for
the work side. (People at home should probably not use 22.)
One remaining question:
When I run the work side incantation, it turns into a shell session. Is
there a way to change it so that it has no session at the end of it so I
could just background it? (The authentication is all done via
key-exchange.)
--
Time flies like the wind. Fruit flies like a banana. Stranger things have .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net
More information about the gnhlug-discuss
mailing list