Copy Ssh Public Key

January 27, 2019

Copy content of SSH public key.

cat ~/.ssh/


sudo apt-get install xclip
xclip -sel clip < ~/.ssh/

Copy/Install local public key to remote server



ssh-copy-id -i KEY_FILE_NAME ln-user@SERVER_IP

NOTE: ssh-copy-id

ssh-copy-id installs an SSH key on a server as an authorized key. Its purpose is to provision access without requiring a password for each login. This facilitates automated, passwordless logins and single sign-on using the SSH protocol.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.