互联网 SSH 访问

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 11:00, 22 May 2010 (edit)
Amoroso1860 (Talk | contribs)

← Previous diff
Revision as of 18:50, 22 May 2010 (edit) (undo)
Glenn (Talk | contribs)
(wiki, +{{Languages|External SSH}})
Next diff →
Line 1: Line 1:
 +{{Languages|External SSH}}
External SSH External SSH
-From DD-WRT Wiki+*From DD-WRT Wiki
-(Redirected from SSH access from internet)+*(Redirected from SSH access from internet)
-Jump to: navigation, search+*Jump to: navigation, search
-SSH access from Internet +*SSH access from Internet
Contents [hide] Contents [hide]
-1 Ensure SSH Enabled+# Ensure SSH Enabled
-2 Enable Remote Access+# Enable Remote Access
-3 Disabling Remote Access+# Disabling Remote Access
-4 SSH Password+# SSH Password
-5 References+# References
[edit] Ensure SSH Enabled [edit] Ensure SSH Enabled
-1.Goto the Services tab and the Services sub-tab on the Web Interface +#Goto the Services tab and the Services sub-tab on the Web Interface
-2.Enable "SSHd" is under the section titled "Secure Shell" +#Enable "SSHd" is under the section titled "Secure Shell"
-3.'SSH TCP Forwarding' does not need to be enabled if you just want to connect from the outside to your LAN. +#'SSH TCP Forwarding' does not need to be enabled if you just want to connect from the outside to your LAN.
-4.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) +#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)
-5.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]]. +#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]].
-6.Save +#Save
 + 
[edit] Enable Remote Access [edit] Enable Remote Access
-1.Goto the Administration tab and the Management sub-tab on the Web Interface +##Goto the Administration tab and the Management sub-tab on the Web Interface
-2.Enable "SSH Management" under the section titled "Remote Access" +#Enable "SSH Management" under the section titled "Remote Access"
-3.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.
-4.Save +#Save
-5.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 PuTTY.
Line 30: Line 32:
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,
-1.Goto the Administration tab and the Management sub-tab on the Web Interface +#Goto the Administration tab and the Management sub-tab on the Web Interface
-2.Disable "SSH Management" under the section titled "Remote Access" +#Disable "SSH Management" under the section titled "Remote Access"
-3.Apply Settings +#Apply Settings
[edit] SSH Password [edit] SSH Password
-1.When asked for the username, enter root (even if you changed username in web interface) +#When asked for the username, enter root (even if you changed username in web interface)
-2.When asked for the password, enter your router's password +#When asked for the password, enter your router's password
[edit] References [edit] References
-http://hetos.de/sshtut.html +*http://hetos.de/sshtut.html
-Retrieved from "http://www.dd-wrt.com/wiki/index.php/External_SSH"+*Retrieved from "http://www.dd-wrt.com/wiki/index.php/External_SSH"
-Categories: SSH | Basic tutorials+ 
 +[[Categories:Categories/zh cn]]

Revision as of 18:50, 22 May 2010

External SSH

  • From DD-WRT Wiki
  • (Redirected from SSH access from internet)
  • Jump to: navigation, search
  • SSH access from Internet

Contents [hide]

  1. Ensure SSH Enabled
  2. Enable Remote Access
  3. Disabling Remote Access
  4. SSH Password
  5. References

[edit] Ensure SSH Enabled

  1. Goto the Services tab and the Services sub-tab on the Web Interface
  2. Enable "SSHd" is under the section titled "Secure Shell"
  3. 'SSH TCP Forwarding' does not need to be enabled if you just want to connect from the outside to your LAN.
  4. 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)
  5. 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.
  6. Save

[edit] Enable Remote Access

    1. Goto the Administration tab and the Management sub-tab on the Web Interface
  1. Enable "SSH Management" under the section titled "Remote Access"
  2. Enter the same port number as specified under (4) above. This opens the port in the firewall.
  3. Save
  4. 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,

  1. Goto the Administration tab and the Management sub-tab on the Web Interface
  2. Disable "SSH Management" under the section titled "Remote Access"
  3. Apply Settings

[edit] SSH Password

  1. When asked for the username, enter root (even if you changed username in web interface)
  2. When asked for the password, enter your router's password

[edit] References

Categories:Categories/zh cn