SSH to Unifi USG Public Key Rejected

Written by James McDonald

November 21, 2021

Trying to login using SSH with a Public Key to USG and only get a password prompt

Using latest version of MacOS and the following ssh version

ssh -V
OpenSSH_8.8p1, OpenSSL 1.1.1l  24 Aug 2021

Run the following to get more info

get a heap of output but the important bit is:

send_pubkey_test: no mutual signature algorithm

The fix

Add the following to your ~/.ssh/config file

Host usg
     User yourunifsshuser
     IdentityFile ~/.ssh/id_rsa
     PubkeyAcceptedKeyTypes +ssh-rsa

The crucial part is to add the PubkeyAcceptedKeyTypes +ssh-rsa line

The HostName and User values you will need to edit to suit your values.


Submit a Comment

Your email address will not be published.

You May Also Like…


Zebra Printer Language The above website has a page where you can enter ZPL and it...