Skip to content

Install SSH key on a server as an authorized key

Michael Hulse edited this page Jul 29, 2018 · 1 revision

This makes it so you don’t have to type in your password when connecting to server via SSH:

$ ssh-copy-id [email protected]
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
[email protected]'s password:

Number of key(s) added:        1

Now try logging into the machine, with:   "ssh '[email protected]'"
and check to make sure that only the key(s) you wanted were added.
Clone this wiki locally