Easy SSH tunnels

From DD-WRT Wiki

Revision as of 02:18, 27 February 2010 by Phuzi0n (Talk | contribs)
Jump to: navigation, search

Contents

Introduction

SSH tunneling allows you to forward traffic from one location to another using encryption between them. It is great for accessing your home network from remote locations such as your workplace or public WIFI hotspots. Not only can you use it to access your home network securely, but you can also use it to securely browse the internet by forwarding your traffic from the remote location to your home and then out to the internet unencrypted from your home. This can allow you to bypass security restrictions as well.

Requirements

Configuring the DD-WRT SSH Server

  1. Go to the Services tab and the Services sub-tab on the Web Interface.
  2. Enable SSHd in the Secure Shell section.
  3. SSH TCP Forwarding can be left disabled.
  4. Port can be left set to 22.
  5. Either enable Password Authorization (less secure but easier to set up) or see the main SSH Wiki page for instructions how to set up Authorized Keys.
  6. Press the Apply Settings button.
  7. Go to the Administration tab and the Management sub-tab on the Web Interface
  8. Enable SSH Management in the Remote Access section.
  9. Set the Remote Port to the TCP port number that you want to use to connect to your router from the internet. Port 443 is a good choice because it is typically left open to allow HTTPS usage, so your client will be able to connect even through very restrictive firewalls.
  10. Press the Apply Settings button.

Configuring the Remote SSH Client

PuTTY Client

PuTTY is a graphical SSH client for Windows OS that is available for download [here].


Image:Easy_ssh_putty_tunnel.png

Command Line Client

References