Locked Out of Server Print

  • 0

If you change the SSH port from 22 to any other number and don't open up the port in the firewall, you will get locked out the next time you try to log in.

Here is how to open it up in the firewall(s):

If you change the SSH port in the future, you need to change ipTables (assuming it's now port 2022):
iptables -I INPUT -p tcp -m tcp --dport 2022 -j ACCEPT

and / or APF:
edit /etc/apf/conf.apf
look for line that has:
IG_TCP_CPORTS = "1,22,25, 53, 80, 110 ...etc.
and add in port 2022 .. then issue command:
apf -r

 If you need us to break into your server and fix the system settings, it is a one time charge of $65:
https://www.shoutcaststreaming.us/whmcs/whmcs/cart.php?a=add&pid=537

If you are changing any system settings and are not quite sure of what you are doing, DON'T DO IT !!




Was this answer helpful?

« Back