How to create ssh tunnel at home on DD-WRT firmware on router with putty

I am a quite new. May you give more details or reference.
turbot_yuAsked:
Who is Participating?
 
Brian GeeConnect With a Mentor Commented:
Based on your earlier request, here are some things to be addressed...

Determine if the default port 22 is open for SSH connections within your organization, and if not, identify a suitable port for SSH tunneling.

If you do not have a static IP at home, register an account at DynDNS.org so that you can easily access your home system DNS using your dynamic IP. Input your account information in the DD-WRT UI (user interface) in Setup tab > DDNS.

For simplicity sake, we'll get you going with password authentication (public key authentication is advisable from a security perspective, and it's something you should implement once you understand and get everything going successfully). From the DD-WRT UI, go to Services tab > Services sub-tab > access the Secure Shell section. Enable SSHd, SSH TCP Forwarding and Password Login. Input your Port number here as well based on your findings into open ports in your organization. Be sure to Apply Settings for any changes you make to your DD-WRT settings.

Download PuTTY from the official source (type in putty from a Google search and typically the first result is the the PuTTY telnet/ssh client site).

Launch and configure PuTTY from your work computer. Click the Session link in the left-side navigation pane, and then type in your static IP (if you have one) or your DynDNS account info (for example, myhomerouter.dyndns.org) in the Host Name field. Make sure the Connection Type radio button is selected to SSH, which will default the Port number to 22. Change this to an available, open port in your organization, if necessary. Save this session (Save button) so that you don't have to keep inputting this information every time you initiate an SSH session.

To initiate the SSH tunnel from here, click the Open button and then you should see a command line window start up with a Login As prompt (typically, your login using DD-WRT will be: root). After entering the login name, you will be prompted for a password. Once successfully connected, you will see a DD-WRT ASCII art logo appear in this window. Then you will know that your SSH session has been successfully established.
0
 
Brian GeeCommented:
Do you already have the DD-WRT firmware-flashed router ready to configure?
0
 
turbot_yuAuthor Commented:
Thanks, I do some explore, but the router still not ready yet, may you recommend one.
0
Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

 
Brian GeeCommented:
You can always go with the tried and true Linksys WRT54GL which is one of the most popular, but it is a bit dated being only wireless-G and no-Gigabit switch. What were your needs for such a device? Did you need wireless-N, gigabit switch, etc.?
0
 
turbot_yuAuthor Commented:
Just personal interest. If have more functions, it may be a bonus.

I will try to get WRT54GL, but just worried it is out of stock since it start on 2006.

If so, is there any new models, or just search for the ones with SSH tunnel.

Thanks.
0
 
turbot_yuAuthor Commented:
Only the most usual ports are open, or others may be shut down. Will it be affected, thanks.
0
 
Brian GeeConnect With a Mentor Commented:
I can't vouch for many other consumer grade routers (other than the Linksys WRT54GL) but there are others out there that support DD-WRT firmware which are reviewed rather well. If you do research on other options be sure to reference the supported device list:

http://www.dd-wrt.com/wiki/index.php/Supported_Devices

The WRT54GL is very much available now. Check Newegg and Amazon for reference.

If default SSH port 22 is closed at your org, then you can change the listening port in the DD-WRT UI accordingly.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.