External SSH

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 15:39, 24 August 2005 (edit)
Miruben (Talk | contribs)

← Previous diff
Revision as of 18:20, 24 August 2005 (edit) (undo)
213.139.154.67 (Talk)
(typo)
Next diff →
Line 15: Line 15:
=Warning!= =Warning!=
-'''It's not too secure to set up SSH access like that. Be sure to choose a long and secure password or even better use [[Telnet/SSH_and_the_Command_Line#Setting_Up_2|Public Key Method]]. Otherwise someone could succed to hack your router by a [http://en.wikipedia.org/wiki/Brute_force_attack Brute Force Attack].'''+'''It's not too secure to set up SSH access like that. Be sure to choose a long and secure password or even better use [[Telnet/SSH_and_the_Command_Line#Setting_Up_2|Public Key Method]]. Otherwise someone could succeed to hack your router by a [http://en.wikipedia.org/wiki/Brute_force_attack Brute Force Attack].'''
---- ----
'''You are here: ''' '''[[Main Page]]'''/'''[[DD-WRT Docu (EN)]]'''/'''[[SSH access from internet]]''' '''You are here: ''' '''[[Main Page]]'''/'''[[DD-WRT Docu (EN)]]'''/'''[[SSH access from internet]]'''

Revision as of 18:20, 24 August 2005

You are here: Main Page/DD-WRT Docu (EN)/SSH access from internet

How to set up SSH access from internet

To make it possible to access your router from internet by SSH follow these steps:

  • Enable SSHD on the Web_Interface (Administration -> Management) and don't forget to Save Settings.
  • Create a port forward rule on the web interface (Applications & Gaming -> Port Range Forward) to your router's local ip:
ssh  |  22  |  22  |  tcp  |  192.168.0.1  |  x

(for 192.168.0.1 set your router's local ip)
  • To allow access to the SSH port from WAN add the following rule as command on the Web_Interface (Administration -> Diagnostics) and save with Save Firewall:
/usr/sbin/iptables -I INPUT 1 -p tcp --dport 22 -j logaccept
  • To log into your router from a windows machine you could use Putty. You will have to enter the external ip of your router or the DynDNS name to login from Internet.

Warning!

It's not too secure to set up SSH access like that. Be sure to choose a long and secure password or even better use Public Key Method. Otherwise someone could succeed to hack your router by a Brute Force Attack.


You are here: Main Page/DD-WRT Docu (EN)/SSH access from internet