Use an ed25519 key instead of the obsolete rsa key.

Chances are the sshd server is refusing to work with the obsolete key.
If you showed the actual ssh -v output, people would if that is the case.

On Oct 08 19:44:36, my2...@has.im wrote:
> Hello,
> 
> While moving my stuff online I decided that it was the time to allow 
> more machines to login to my server.
> 
> Indeed I have my usual old Mac that merits a chance to login to my cloud
> server too.. ;)
> 
> I went to my Mac (SSH -V: OpenSSH 6.9p1 LibreSSL 2.1.8) and launched
> ssh-keygen produced for my my user a nice RSA key. I grabbed it and I
> went on my
> cloud server (SSH -V: OpenSSH 9.2p1 OpenSSL 3.0.9) and appended it in
> my .ssh/authorized_keys.
> 
> SSHD user authentication by password is disabled on the cloud server..
> 
> I rebooted the Mac and restarted SSH on the cloud server.. but
> the Mac SSH continues to ask to me to login with the root password
> instead to ask the RSA file password to access its public key.
> >From the man I see that asking the root password is the last chance
> given to the user to login if anything goes wrong..
> 
> Is there any chance to make Mac SSH login works by key or I can give it
> up?
> 
> Thanks!
> 
> -- Daniele Bonini
> 
> 

Reply via email to