User Tools

Site Tools


ssh:ssh_tricks

This is an old revision of the document!


SSH Tricks

Reverse ssh tunnel

Set “GatewayPorts yes” in /etc/ssh/sshd_config on the server.

On client (behind NAT):

ssh -R 6333:localhost:22 server_user@server

Leave this connection open.

On server (public accessible):

ssh client_user@server -p 6333

Now the server is connected to the client.

ssh/ssh_tricks.1275992673.txt.gz · Last modified: 2010/06/08 12:24 by deva