互联网 SSH 访问
From DD-WRT Wiki
(Difference between revisions)
Revision as of 18:53, 22 May 2010 (edit) Glenn (Talk | contribs) (catcorr) ← Previous diff |
Current revision (12:03, 7 November 2010) (edit) (undo) Wufangzhuo (Talk | contribs) |
||
Line 1: | Line 1: | ||
{{Languages|External SSH}} | {{Languages|External SSH}} | ||
- | + | SSH access from Internet | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ==Ensure SSH Enabled== | |
- | + | # Goto the ''Services'' tab and the ''Services'' sub-tab on the [[Web Interface]] | |
- | + | # Enable "SSHd" is under the section titled "Secure Shell" | |
- | + | # 'SSH TCP Forwarding' does not need to be enabled if you just want to connect from the outside to your LAN. | |
- | + | # Choose an appropriate port (The default is 22, but it is recommended that you change it to a non-standard port above 1024 for security reasons. Remember the port number, as you will need to enter it into your SSH client in order to connect to the router) | |
- | + | # You can activate (less secure) password authorization and/or (recommended) private/public key authorization. More information about generating the keys can be found here: [[http://www.dd-wrt.com/wiki/index.php/Telnet/SSH_and_the_Command_Line#Setting_Up]]. | |
- | + | # Save | |
- | + | ||
- | #Goto the Services tab and the Services sub-tab on the Web Interface | + | |
- | #Enable "SSHd" is under the section titled "Secure Shell" | + | |
- | #'SSH TCP Forwarding' does not need to be enabled if you just want to connect from the outside to your LAN. | + | |
- | #Choose an appropriate port (The default is 22, but it is recommended that you change it to a non-standard port above 1024 for security reasons. Remember the port number, as you will need to enter it into your SSH client in order to connect to the router) | + | |
- | #You can activate (less secure) password authorization and/or (recommended) private/public key authorization. More information about generating the keys can be found here: [[ | + | |
- | #Save | + | |
- | + | ==Enable Remote Access== | |
- | + | # Goto the ''Administration'' tab and the ''Management'' sub-tab on the [[Web Interface]] | |
- | #Enable "SSH Management" under the section titled "Remote Access" | + | # Enable "SSH Management" under the section titled "Remote Access" |
- | #Enter the same port number as specified under (4) above. This opens the port in the firewall. | + | # Enter the same port number as specified under (4) above. This opens the port in the firewall. |
- | #Save | + | # Save |
- | #Reboot Router | + | # Reboot Router |
- | Now you will be able to connect to your router's WAN IP from the internet using an SSH client such as PuTTY. | + | Now you will be able to connect to your router's WAN IP from the internet using an SSH client such as [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY]. |
- | + | ==Disabling Remote Access== | |
- | If at any time you wish to disable SSH access from the WAN, | + | If at any time you wish to disable SSH access from the WAN, |
+ | # Goto the ''Administration'' tab and the ''Management'' sub-tab on the [[Web Interface]] | ||
+ | # Disable "SSH Management" under the section titled "Remote Access" | ||
+ | # Apply Settings | ||
- | + | ==SSH Password== | |
- | + | # When asked for the '''username''', enter '''root''' (even if you changed username in web interface) | |
- | + | # When asked for the '''password''', enter your router's password | |
- | + | ||
- | #When asked for the username, enter root (even if you changed username in web interface) | + | |
- | #When asked for the password, enter your router's password | + | |
- | + | ||
- | + | ||
- | + | ||
- | [[Category: | + | =References= |
+ | * http://hetos.de/sshtut.html | ||
+ | |||
+ | [[Category:SSH]] | ||
+ | [[Category:Basic tutorials]] |
Current revision
English • Deutsch • Español • Français • Italiano • 日本語 • Polski • Português • Русский • Svenska • 中文(中国大陆) • 中文(台灣) • |
SSH access from Internet
Contents |
[edit] Ensure SSH Enabled
- Goto the Services tab and the Services sub-tab on the Web Interface
- Enable "SSHd" is under the section titled "Secure Shell"
- 'SSH TCP Forwarding' does not need to be enabled if you just want to connect from the outside to your LAN.
- Choose an appropriate port (The default is 22, but it is recommended that you change it to a non-standard port above 1024 for security reasons. Remember the port number, as you will need to enter it into your SSH client in order to connect to the router)
- You can activate (less secure) password authorization and/or (recommended) private/public key authorization. More information about generating the keys can be found here: [[1]].
- Save
[edit] Enable Remote Access
- Goto the Administration tab and the Management sub-tab on the Web Interface
- Enable "SSH Management" under the section titled "Remote Access"
- Enter the same port number as specified under (4) above. This opens the port in the firewall.
- Save
- Reboot Router
Now you will be able to connect to your router's WAN IP from the internet using an SSH client such as PuTTY.
[edit] Disabling Remote Access
If at any time you wish to disable SSH access from the WAN,
- Goto the Administration tab and the Management sub-tab on the Web Interface
- Disable "SSH Management" under the section titled "Remote Access"
- Apply Settings
[edit] SSH Password
- When asked for the username, enter root (even if you changed username in web interface)
- When asked for the password, enter your router's password