Posted By

electblake on 12/15/10


Tagged

linux ssh idrsapub authorizedkeys


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

rickygri


Copy my id_rsa.pub to remote server authorized_keys via ssh


 / Published in: Bash
 

URL: http://linuxproblem.org/art_9.html

I use this to quickly (in one line) copy my own id_rsa.pub to remote server so I can connect w/out using my password.

  1. cat ~/.ssh/id_rsa.pub | ssh user@server.com 'cat >> .ssh/authorized_keys'

Report this snippet  

You need to login to post a comment.