Does the Lish console bypass "PasswordAuthentication no"?

For my CentOS 6.2 machine, in /etc/ssh/sshd_config I disallowed pw-based login…

PasswordAuthentication no

It appears that password-based authentication is disallowed for the Lish console, or I'm making a typing mistake.

(I can ssh in ok from my main workstation using key-based authentication.)

I'm trying to interpret this part of the docs…

( https://library.linode.com/using-lish-the-linode-shell )

> The [Lish] console provides out-of-band access to your Linode, which means you can use Lish to access your Linode even when you are unable to connect directly via SSH. This is useful if firewall settings or a bad network configuration prevent you from accessing your Linode using SSH.

Should I expect to be able to log in via the Lish console using my username and password, or does that ssh config apply Lish as well?

3 Replies

When you're at your console (you see " login:") you should always be able to log in as root with your root password, unless you succeeded in breaking PAM (If you don't know what this is, you probably didn't). Using the AJAX client from the Linode Manager will generally bring you right to your Linode's console. You may want to double check you're typing your password correctly. If you still can't get in, you can reset your root password from the Rescue tab in the Linode Manager (which does require that you power down your Linode first).

-Doug

When you are connected to your console via Lish, you are not using an SSL connection between Lish and the Console. So your PasswordAuthentication no doesn't mean anything.

The point being, if you locked yourself out of ssh, you can still get there via Lish as if you were standing there at the keyboard.

beat me to it…

Ok, thanks a lot for the help.

It appears I was making some kind of mistake with copy-and-paste, maybe inserting a return or something.

Now it's working.

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