Pushing public keys

From thelinuxwiki
Revision as of 16:27, 12 April 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

how to push / upload a public key to a remote server

This could be automated in a script. Example:

cat .ssh/id_rsa.pub | ssh username@_remote_hostname 'cat >> .ssh/authorized_keys'