Portal Home > Knowledgebase > Articles Database > Changing SSH Port


Changing SSH Port




Posted by arda000, 08-25-2010, 02:13 AM
Hello; I want to change my default port in sshd_config. After changing the default port, is it necessary to remove port 22 And adding specified port to APF firewall? By thw way can i login with my new port like this way? ssh username@127.0.0.1:MYPORTNUMBER Thank you

Posted by h4wk, 08-25-2010, 02:18 AM
Yes you should block port 22 after you change the port. You should allow the new port on your firewall. Block all ports except the ones you need.

Posted by YUPAPA, 08-25-2010, 02:18 AM
Better ssh -p {portnumber} {username}@{host}

Posted by Syslint, 08-25-2010, 02:55 AM
make sure to restart sshd after changing the port

Posted by jphilipson, 08-25-2010, 03:10 AM
and make sure you have opened the new port in your firewall before changing the port and restarting SSHD - or you will find yourself locked out of your server lol

Posted by arda000, 08-25-2010, 03:17 AM
how can i test if it's opened or not before changing my SSH port? Is devmode=1 on APF can be a solution to test it? Thanks



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Need good reseller (Views: 808)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.