Unable to authenticate with key

67 views
Skip to first unread message

Owen Healy

unread,
Mar 27, 2020, 11:11:01 PM3/27/20
to mosh-chr...@googlegroups.com
Hello All,

I'm having trouble authenticating with a key. I've checked the basic suspects:
  1. I added the private (not public) key to mosh.
  2. The public key is authorized (checked with ssh -i)
  3. The username is correct
  4. The hostname is correct
On the client side, I see the following (with my hostname edited out):
Could NOT authenticate DNS lookup. Remote ssh host name/address: ****:22 ssh-ecdsa key fingerprint of remote ssh host (MD5): e2:c6:24:fe:fd:71:45:18:28:54:d1:36:a5:28:22:91 Server fingerprint unknown. Store and continue? (Yes/No): yes Authentication types supported by server: - Public Key Trying authentication type Public Key Passphrase: (here I hit ENTER because the key has no passphrase) ssh authentication failed: Access denied. Authentication that can continue: publickey SSH Login failed. Mosh has exited. Press "x" to close the window.

On the server side, in /var/log/auth.log, I see a single line:

Mar 28 02:57:31 ip-**** sshd[3183]: Connection closed by 73.**** port 46488 [preauth]


Any ideas for where else I might look?

Best,
Owen

Owen Healy

unread,
Mar 30, 2020, 1:23:38 AM3/30/20
to mosh-chr...@googlegroups.com
I figured it out. OpenSSH apparently no longer generates keys in PEM format by default.

I converted it using:

ssh-keygen -p -f ~/.ssh/thekey -m PEM


and then added the converted key to mosh and it worked.
Reply all
Reply to author
Forward
0 new messages