SSH Tunneling
- February 9th, 2010
- By MP
- Write comment
Open a remote shell from localhost to server.internet.de
ssh -q -N -R 1337:localhost:22 server.internet.de -p 22
connect to the remote shell from server.internet.de
ssh localhost -p 1337
create a socks5 socket on server.internet.de
ssh -qND 8089 user@server.internet.de -p 22
use the socks5 socket on localhost via tsocks
cat ~/.tsocks.conf
server = 127.0.0.1 server_port = 8089
using the tunnel
tsocks telnet LAN_IP from server.internet.de
