Can't add an SSH login for a second machine

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.39
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

My Yunohost is set up to only allow login from machines with known SSH keys. I can log in to Yunohost via SSH on my main machine, but now I want to add my laptop, but when I try to log in I get “Permission denied” before it even asks me for the passphrase for the public key. Here’s what I did to add the laptop:

  1. Logged in via SSH on my main machine
  2. Created a keypair on my laptop with ssh-keygen -t rsa -b 4096
  3. did yunohost user ssh add-key <my-public-key*>
  4. Restarted the server
  • For the public key, I tried using the full text of the public key at first, but that ended up with Yunohost giving “unknown argument” errors. It ended up accepting the key when I copied from just after “ssh-rsa” to part including the “==”

Any ideas how to troubleshoot this? Is there a way to at least find out why it rejected the login (ie wrong key, wrong password, insufficient user permissions etc)?

Thanks!

Share relevant logs or error messages

** WARNING: connection is not using a post-quantum key exchange algorithm.
** This session may be vulnerable to “store now, decrypt later” attacks.
** The server may need to be upgraded. See OpenSSH: Post-Quantum Cryptography
MYUSERNAME@MY.YUNOHOSTDOMAIN.TLD: Permission denied (publickey).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.