Monday, May 16, 2011

What is SSH and How to configure a SSH Reverse Tunnel

A simple Explanation of SSH.

Secure SHell
Connectivity tools for secure communications over the internet. SSH is a replacement for:telnet & rlogin.All communication is encrypted.

Purpose Common used of SSH:

1.You want to access a web interface that lies behind a firewall

2.You want to secure your communications when you are in a public WLAN


Step Take(By Problem)
=========

1.Problem: the server you want to access, can only be reached via VPN

Solution: create a reverse tunnel

Login to your server over your VPN

ssh -R 9995:localhost:22 your.ssh-server.net
if you are logged in on your.ssh-server.net you can now access the remote
server without vpn:
ssh -p 9995 localhost


2.Forward all your traffic through a tunnel

Connet to your server at first.

ssh -D 8888 your.ssh-server.net

Define a SOCKS-Proxy in your Browser settings with host '127.0.0.1' and port '8888'
Now all your traffic seems to come from that host!

Enjoy!

No comments:

Post a Comment