Accidentally locked myself out

Hello,

I was trying to change the default port for SSH from 22 to another port but forgot to open the new port and now I can't get in via SSH.

I see there's the Linode Shell option.

How do I use Lish so I can open the new port so I can log in via SSH again?

Thanks

2 Replies

https://www.linode.com/docs/networking/ … hell-lish/">https://www.linode.com/docs/networking/using-the-linode-shell-lish/

This happened to me while I was securing my Ubuntu node following the https://www.linode.com/docs/guides/securing-your-server/ document. I prematurely set the /etc/ssh/sshd_config PasswordAuthentication to "no". Lish allowed me to use nano to change the value to "yes" and run the "systemctl restart sshd" command. I was no longer locked out.

Today, I really like the Linode Shell.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct