Posts

Showing posts from December, 2016

Passwordless root SSH Public Key Authentication on RHEL

To set it up is relatively straight forward: On the client machine (ie. the one you are SSH'ing from) you will need to create an SSH RSA key. So run the following command - ensure you don't supply a password: [root@node01 ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ssh'. 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: c6:66:93:16:73:0b:bf:46:46:28:7d:a5:38:a3:4d:6d root@node01 The key's randomart image is: +--[ RSA 2048]----+ |            .    | |       . + o     | |      . @ E      | |       * & .     | |      . S =      | |       = + .     | |          o      | |         .       | |                 | +-----------------+ This will generate the following files: [root@node01 ~]# cd ~/.ssh [root@node