Copy your public key to a remote server

Sometimes you need to login to a remote server without typing your password. Really usefull when you want to copy files to remote servers in your bash script routines. To allow  the server to do this you have to copy your public key. Here is how to do it:

 bash | 
 
 copy code |
?

1
ssh-copy-id -i .ssh/id_rsa.pub username:[email protected]

Leave a Reply