ssh copy id example

First generate the ssh key, then use the below command to copy to the remote server,

ssh-copy-id -i ~/.ssh/id_rsa.pub USERNAME@remoteserver

This will ask for the password of the remote server, enter it once. If copy id succeeded, it wouldn't be asked again for future logins!

ssh copy id can be used for log in to any username, for example, the same id can be used for:

Example ssh copy id, the same key to multiple users

ssh-copy-id -i ~/.ssh/id_rsa.pub USER100@remoteserver
ssh-copy-id -i ~/.ssh/id_rsa.pub USER220@remoteserver
ssh-copy-id -i ~/.ssh/id_rsa.pub USER770@remoteserver

and so on.. when connecting next time, provide the username you want to use in the remote server.

Jun 16, 2017 by | 40 views
DevOpsRun.com is LIVE!

Articles for DevOps Geeks
MobaXterm Customization
CHMOD Explained!
Bash history powerful tips
Ubuntu bash from Windows