[root@master ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: cb:da:37:9f:3c:88:16:83:ce:16:4c:e2:84:9b:fc:70 root@master The key's randomart image is: +--[ RSA 2048]----+ | | | | | . | | . o . | | . = + .S | | = E +.o. | | + o .o+ . | | . +oo +... | | ..... o+. | +-----------------+ [root@master ~]#
[root@master ~]# ssh-copy-id 192.168.31.129 root@192.168.31.129's password: Now try logging into the machine, with "ssh '192.168.31.129'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. [root@master ~]#