Quick way to set your SSH public as an authorized key on a remote server

I was just copying the public key and then accesing the server to make the authorized_keys file and so on, but this command does that automatically.

ssh-copy-id -i ~/.ssh/the-key user@host

Using multiple RSA keys to connect through SSH

I was just having trouble because you can’t use the same RSA key in order to connect to multiple accounts on bitbucket, this can be solved creating a new one, but you need to know how to handle them, and there is two ways to do it.

If you just need to connect with ssh to a host well you can just put it as a parameter, but this doesn’t work as a complete solution.

ssh -i PATH_TO_SSH_KEY username@host.com

Continue reading