This may help?
Edit: /etc/ssh/sshd_config
Add or edit the port.Code:sudo vim /etc/ssh/sshd_config
Port 22
Port <new port>
I use Port 22 and Port 443.Code:sudo /etc/init.d/ssh restart
Port 22 for local and Port 443 from work ^^
This may help?
Edit: /etc/ssh/sshd_config
Add or edit the port.Code:sudo vim /etc/ssh/sshd_config
Port 22
Port <new port>
I use Port 22 and Port 443.Code:sudo /etc/init.d/ssh restart
Port 22 for local and Port 443 from work ^^
Last edited by Kemon; January 26th, 2010 at 12:25 AM. Reason: Forgot the restart command.
If you want the list directly from the source:
http://www.iana.org/assignments/port-numbers
Why are you changing the port ?
I have found if you secure your ssh server it does not add much to change the port.
Personally I advise you :
1. Use keys and disable passwords.
2. Block ip with multiple log in attempts. You can do this with iptables, denyhosts, fail2ban ...
You then do not really need to change the port and keeping the port at 22 just makes it easier for everyone.
There are two mistakes one can make along the road to truth...not going all the way, and not starting.
--Prince Gautama Siddharta
#ubuntuforums web interface
Bookmarks