0

If I enable -vvv when logging in to a SSH server using key-based authentication, then according to debug messages SSH client offers public key to SSH server:

debug1: Offering public key: /home/user/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 149

Why is that so? SSH server already has my public key in authorized_keys file. Or how to understand this Offering public key?

1

The SSH server has your public key (from id_rsa.pub) in your authorized_keys. The ssh client has the private key (in id_rsa).

The debug message means the client is asking the server if it will accept authentication using that public/private keypair.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.