In SSH the client publishes his public encryption key into the server authorized_keys file for a given user. I am interested in understanding better how the public key is used context of authentication. At which stage is it used? Are there digest messages being exchanged? I Googled it and found no clear answer to this questions. Thanks!


The SSH protocol is described in excruciating detail in a series of five RFCs:


The authentication protocol is RFC 4252 (http://www.snailbook.com/docs/userauth.txt).

If you're interested in seeing what SSH is sending back and forth, you can run it with the -v parameter to see what it's doing.

  • or you use -vvv for even deeper detail – s1mmel May 27 '19 at 23:34

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.