==== Annotated Version (same as "Summary Version", but with eplanations & verification) ====
+
==== Annotated Version (same as "Summary Version", but with explanations & verification) ====
* Check, then modify the TCPPort setting for sshd
* Check, then modify the TCPPort setting for sshd
Line 55:
Line 55:
(should return 'Port <newport>')
(should return 'Port <newport>')
−
/etc/init.d/sshd restart
+
service sshd restart
(restart sshd, causing it to recognize the new values in /etc/ssh/sshd_config)
(restart sshd, causing it to recognize the new values in /etc/ssh/sshd_config)
−
Note that any existing connection will remain unaffected, so that you *can* safely execute this procedure remotely. If you do change the sshd port remotely, be sure to open a connection on <newport> before you disconnect your existing session!
+
Existing connections will remain unaffected, so that you *can* safely execute this procedure remotely. If you do change the sshd port remotely, be sure to open a connection on <newport> before you disconnect your existing session!
Please read the [[#Conclusions|Conclusions]] section below for important security information. SSH should NOT be open for password access from the Internet!
Please read the [[#Conclusions|Conclusions]] section below for important security information. SSH should NOT be open for password access from the Internet!