Deploy ssh key to remote server

PHOTO EMBED

Wed Jun 09 2021 12:30:24 GMT+0000 (Coordinated Universal Time)

Saved by @dphillips #ssh

# Test key if neccessary
ssh -i ~/.ssh/id_rsa.pub user@hostname

# Copy key over to server
ssh-copy-id [user@]hostname

# You can also just print out the key as dry run
ssh-copy-id -n [user@]hostname
content_copyCOPY

https://www.ssh.com/academy/ssh/copy-id