Rabu, 05 Oktober 2022

SSH KEY-ubuntu22

https://unix.stackexchange.com/questions/699192/unable-to-negotiate-with-ip-address-port-22-no-matching-host-key-type-found 


This gave me the error as:

Unable to negotiate with port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

Also after googling a bit, I tried:

ssh -oHostKeyAlgorithms=+ssh-dss -i id_rsa root@<ip>

And, this command is prompting for a password when I am using id_rsa for authentication.

How should I use OpenSSH private key to authenticate in SSH?

Tidak ada komentar:

Posting Komentar