External SSH

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:51, 17 February 2007 (edit)
Whiteboy (Talk | contribs)
(Warning!)
← Previous diff
Revision as of 19:53, 17 February 2007 (edit) (undo)
Whiteboy (Talk | contribs)

Next diff →
Line 1: Line 1:
-= Setup SSH access from Internet =+SSH access from Internet
- +
-== DD-WRT v23 SP1 or later ==+
- +
-=== Ensure SSH Enabled ===+
 +==Ensure SSH Enabled==
# Goto the ''Administration'' tab and the ''Services'' sub-tab on the [[Web_Interface]] # Goto the ''Administration'' tab and the ''Services'' sub-tab on the [[Web_Interface]]
# Enable "SSHd" is under the section titled "Secure Shell" # Enable "SSHd" is under the section titled "Secure Shell"
Line 10: Line 7:
# Apply Settings if needed # Apply Settings if needed
-''REFERENCES:'' [[Telnet/SSH_and_the_Command_Line#SSH]] or Sections 1.1 and 1.2 of [http://hetos.de/sshtut.html]+==Enable Remote Access==
- +
-=== Enable Remote Access ===+
- +
# 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]]
# Enable "SSH Management" under the section titled "Remote Access" # Enable "SSH Management" under the section titled "Remote Access"
# Apply Settings # Apply Settings
-=== Disabling Remote Access ===+==Disabling Remote Access==
- +
# 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]]
# Disable "SSH Management" under the section titled "Remote Access" # Disable "SSH Management" under the section titled "Remote Access"
# Apply Settings # Apply Settings
-== DD-WRT v23 or Earlier ==+=References=
- +* http://hetos.de/sshtut.html
-=== Ensure SSH Enabled ===+
- +
-# Goto the ''Administration'' tab and the ''Services'' sub-tab on the [[Web_Interface]]+
-# Enable "SSHd" is under the section titled "Secure Shell"+
-# Choose an appropriate port (The default is 22, but is recommended you change to a non-standard port above 1024 because of security)+
-# Apply Settings if needed+
- +
-''REFERENCES:'' [[Telnet/SSH_and_the_Command_Line#SSH]] or Sections 1.1 and 1.2 of [http://hetos.de/sshtut.html]+
- +
-=== Enable Remote Access ===+
- +
-# Goto the ''Administration'' tab and the ''Diagnostics'' sub-tab.+
-# Add the following to the text area:+
- +
- /usr/sbin/iptables -I INPUT -p tcp --dport $(nvram get sshd_port) -j logaccept+
- +
-# Save as Firewall Script+
- +
-=== Disabling Remote Access ===+
- +
-# Goto the ''Administration'' tab and the ''Diagnostics'' sub-tab.+
-# Add the following to the text area:+
- +
- /usr/sbin/iptables -D INPUT 1+
- +
-# Save as Firewall Script+
[[Category:English documentation]] [[Category:English documentation]]
[[Category:Basic tutorials]] [[Category:Basic tutorials]]

Revision as of 19:53, 17 February 2007

SSH access from Internet

Contents

Ensure SSH Enabled

  1. Goto the Administration tab and the Services sub-tab on the Web_Interface
  2. Enable "SSHd" is under the section titled "Secure Shell"
  3. Choose an appropriate port (The default is 22, but is recommended you change to a non-standard port above 1024 because of security)
  4. Apply Settings if needed

Enable Remote Access

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

Disabling Remote Access

  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

References