You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

794 B

layout title author author_login author_email date tags
post reverse ssh [{display_name sipp11} {login sipp11} {email sipp11@gmail.com} {url }] sipp11 sipp11@gmail.com Feb 4, 2015 [ssh nat]

There are times when your machine is behind NAT and you couldn't access easily. Unless you have VPN tunneling, it would be tricky. However, reverse ssh might be a handy tool.

| Host A | ----> NAT ---> | Host B |

For above case, you can clearly see that B can access A easily, but reversely, it's not w/o port forwarding blah blah blah. As a result, you can just do reverse ssh by start ssh from Host B to Host A with command

$ ssh -NR 8888:localhost:22 user@host-a

Then at Host A, you can just ssh via port 8888.

$ ssh user@localhost -p 8888

ViolĂ !