Can`t connect to the server after changing the port number

Started by infaxhe, October 10, 2021, 06:17:15 AM

Previous topic - Next topic

infaxhe

Hello,

I need some help, if you are so kind. For security reasons I changed the port 22 to another. The problem now is that I can`t connect anymore to that port (obvious; it`s blocked by <me?> via) the Firewall). What should I do to connect to the new port?

Error: ssh: connect to host xxx.xx.xxx.xxx port 22: Connection refused


Thank you!

bartje1974

In terminal: ssh root@host.tld:Yournewportnumber

In putty you just change you port number

infaxhe

Thanks for the reply. Almost that was the answer.  :D

I was using the command wrong. I had to use this: ssh username@xxx.xx.xxx.xxx -pxxxx