Search code examples
linuxsshdebianportlimit

How to connect to server via ssh when a port was accidentally changed to over 65535?


Accidentally I was changed my ssh port to over 65535, but 65535 is limit. And I can not connect via ssh now. Server is cloud hosted. Suppord does not have phisical contact with it. How I can connect to it? Thanks!!!


Solution

  • You do have out-of-band management if you're using Linode. Use Lish, login and fix the sshd config.

    https://www.linode.com/docs/networking/using-the-linode-shell-lish