SSH and keys

Lazyness is not an excuse anymore for using key based authentication

Ghislain Putois published on

1 min, 82 words

Categories: sysadmin

SSH and keys

Everyone always told you password is bad security. And you are just so lazy, and deploying your keys seems complicated.

no more ! Use ssh-keygen and ssh-copy-id :

. ssh-keygen ssh-copy-id ~/.ssh/[my_key] [user]@[host] .

Replace [my_key] by the your keyfile. [user] and [host] are to be replaced by the login credential to the host where you wnt to deploy your keys.

And that's it ! Keep the private key ~/.ssh/[my_key] file protected at all costs.