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@
The authenticity of host ' (' 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 '' (ECDSA) to the list of known hosts.
ubuntu@ Permission denied (publickey).

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