Control Web Panel

WebPanel => CentOS Configuration => Topic started by: infaxhe on October 10, 2021, 06:17:15 AM

Title: Can`t connect to the server after changing the port number
Post by: infaxhe on October 10, 2021, 06:17:15 AM
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!
Title: Re: Can`t connect to the server after changing the port number
Post by: bartje1974 on October 10, 2021, 12:25:47 PM
In terminal: ssh root@host.tld:Yournewportnumber

In putty you just change you port number
Title: Re: Can`t connect to the server after changing the port number
Post by: infaxhe on October 11, 2021, 04:03:37 PM
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