13,420
edits
Changes
no edit summary
==== Public/Private key pair ====
This needs to be generated on and used on your '''client''' machine (i.e. the user/machine you're connecting '''from'''). The private key is the equivalent of a <u>''password, ''</u> (that's it why itis considered to be <u>''s private. And a private key is ''</u> - only to be used by ''<u>one user, that</u>''s owner).That is why it's the private key is stored in a userthe owner's '''~/.ssh/ ''' directory.
You generate a new keypair with this command (press enter for all the questions):
<source lang="bash">ssh-keygen -t rsa</source>
==== Public key on the server ====