changed ssh port - cant login on new port

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
948
29
178
Hi, I'm puzzled.

I've edited /etc/ssh/sshd_config and changed the ssh port - Ive edited etc/apf/conf.apf and removed port 22 and added the new port.

I restarted both services.

If I try to ssh to the server I now get connection refused.

What did I miss ?
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
948
29
178
You wont believe what I did!

I changed the port in the ssh config file but I didnt notice that it was actually commented out!

So when I tried to login on the new port - I couldnt because the default port was still being used.

I feel stupid haha

Thanks for your help all the same!

:eek: