Author Topic: Can`t connect to the server after changing the port number  (Read 294 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Can`t connect to the server after changing the port number
« 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!
« Last Edit: October 10, 2021, 06:18:54 AM by infaxhe »

Offline
*
Re: Can`t connect to the server after changing the port number
« Reply #1 on: October 10, 2021, 12:25:47 PM »
In terminal: ssh root@host.tld:Yournewportnumber

In putty you just change you port number

Offline
*
Re: Can`t connect to the server after changing the port number
« Reply #2 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