Question

SSH private key, used for authentication or encryption?

I’m confused around the concept of SSH authentication. Is ssh key excange necessary for actually authenticating or just encrypting the login attempt and subsequent data exchange?? I mean isn’t username/password used for authenticating?

In other words, if someone finds my user name and password by brute forcing would he be able to login without having hold of my client private key?

And why use a private* client* key instead of a public client key with a server private key?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This comment has been deleted

Authentication the private key is an alternative to a password, so a username + private key would be used and much more difficult to brute force (much much more complex)