$ ssh-keygen Generating public/private rsa key pair. Enter file inwhich to save the key (/home/jactor/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/jactor/.ssh/id_rsa. Your public key has been saved in /home/jactor/.ssh/id_rsa.pub. The key fingerprint is: SHA256:ws1GX7dSOx2HVyyjNIPWnWJv+SiCaCxpq2nePWYRQ18 jactor@Jactor-D The key's randomart image is: +---[RSA 2048]----+ | o . o.| | . E B =.o| | . ..o o.*+=o| | .o+.. ..o+=o| | oo+S.. ..+o.| | + =o. . .....| | . + . . . | | .o..+ | | o+..o.. | +----[SHA256]-----+
$ ssh-copy-id root@vmhost03 /usr/bin/ssh-copy-id: INFO: attempting to login 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 root@vmhost03's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh 'root@vmhost03'" and check to make sure that only the key(s) you wanted were added.