Posted By

zeropx on 01/22/11


Tagged

password key ssh keys authorized servers passwordless


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

zeropx


Add user SSH key to servers authorized keys


 / Published in: Bash
 

Run on your local box in a *nix environment. Allows you to ssh to server with out having to enter password every time.

  1. cat ~/.ssh/id_rsa.pub | ssh root@<host> "mkdir -p ~/.ssh; cat - >> ~/.ssh/authorized_keys"

Report this snippet  

You need to login to post a comment.