# Can't add an SSH login for a second machine

**URL:** <https://forum.yunohost.org/t/cant-add-an-ssh-login-for-a-second-machine/41987>\
**Category:** Support\
**Tags:** english\
**Created:** [April 4, 2026, 4:20pm UTC](https://forum.yunohost.org/t/cant-add-an-ssh-login-for-a-second-machine/41987 "2026-04-04T16:20:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zinkie](https://forum.yunohost.org/user_avatar/forum.yunohost.org/zinkie/32/345_2.png) [@Zinkie](https://forum.yunohost.org/u/Zinkie)\
**Post date:** [April 4, 2026, 4:20pm UTC](https://forum.yunohost.org/t/cant-add-an-ssh-login-for-a-second-machine/41987/1 "2026-04-04T16:20:50Z")

</div>

**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](https://openssh.com/pq.html)  
MYUSERNAME@MY.YUNOHOSTDOMAIN.TLD: Permission denied (publickey).

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [May 4, 2026, 4:21pm UTC](https://forum.yunohost.org/t/cant-add-an-ssh-login-for-a-second-machine/41987/2 "2026-05-04T16:21:35Z")

</div>

Closed on May 4, 2026, 4:21pm UTC

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