Ubuntu 18.04 set your SSH key


Logging in with a key is way safer (and easier) than using your password each time. Here is how to set it up on Ubuntu 18.

I assume you already have generated your SSH key. 

$ ssh-keygen -t rsa 4096 -C "my key"

once you have the key just run

ssh-copy-id [email protected]  
ssh-copy-id -i ~/.ssh/file.pub [email protected]

and you are all set! enjoy

👏 99

made with ♥️ © david.dev 2023