Comment on How is an SSH key useful ?

webghost0101@sopuli.xyz ⁨5⁩ ⁨days⁩ ago

I actually looked this up earlier today because i didn’t understand part of it.

An ssh key is, as i understand it, a way to encrypt the connection so only a device that has they key can unlock it.

There are 2 parts, a private key which should never be shared and a public one which can freely be shared.

You usually generate both keys on the device that connects to the ssh, keep the private key on there with the public key going on the server. Thats the part that confused me.

But the way it works is that the public key is used to encrypt/lock something.And only the private key can unlock it.

Any other device that tries to connect just gets an encrypted connection they don’t have the key for. Because these keys are so long no current day tool can guess or crack them. So it is the absolute safest way to establish an ssh connection.

Quantum computers might in the future be able to break them but solutions for this are being worked on.

source
Sort:hotnewtop