$ ssh-copy-id user@rhel-server The authenticity of host 'rhel-server (rhel-server)' can't be established. ECDSA key fingerprint is 21:4d:71:f6:ef:1f:c1:f7:a9:d9:81:4d:9d:34:4d:a9. Are you sure you want to continue connecting (yes/no)? yes /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 user@rhel-server's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh 'user@rhel-server'" and check to make sure that only the key(s) you wanted were added.
The above command will propt you for a password based upon which your access to the remote server will be authenticated and password exchanged. If you get an error message saying:
/usr/bin/ssh-copy-id: ERROR: No identities foundyou first need to generate your ssh keys using below command: