I'm always getting "Permission denied"

Well I’ve tried a few times now and I just can’t get it to work.

I configure the server, put my public key into the box and every time I get:-

chris@esprimo$ ssh ubuntu@46.226.106.236
The authenticity of host '46.226.106.236 (46.226.106.236)' can't be established.
ECDSA key fingerprint is SHA256:q3N47103nxd25I7B9aJyg//NB38Ir0Ki23SEZbiNeak.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '46.226.106.236' (ECDSA) to the list of known hosts.
ubuntu@46.226.106.236: Permission denied (publickey).
chris@esprimo$ 

So, what am I doing wrong, that key works for other systems.

On peut parler en français si c’est plus facile.

Je l’essayais plusieurs fois, toujours " Permission denied (publickey)"

Le clef que j’utilisais est simplement ~/.ssh/id_rsa.pub, c’est bon?

OK, found the problem, line-wrap! I had some newlines added into the key. Mea culpa.

1 Like