You are looking for ssh-copy-id
. All this command does is create .ssh
and .ssh/authorized_keys
and set their permissions appropriately if they don’t exist. Then it appends your public key to the end of .ssh/authorized_keys
.
You are looking for ssh-copy-id
. All this command does is create .ssh
and .ssh/authorized_keys
and set their permissions appropriately if they don’t exist. Then it appends your public key to the end of .ssh/authorized_keys
.