Ubuntu 18.04 set your SSH key

- ubuntu
- 10-Dez-2019
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