Copy my id_rsa.pub to remote server authorized_keys via ssh


/ Published in: Bash
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. cat ~/.ssh/id_rsa.pub | ssh user@server.com 'cat >> .ssh/authorized_keys'

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.