SSH no password rsa-key RHEL 5
SSH no password rsa-key RHEL1) On the machine you are trying to access open a terminal and (Skip these step if you never generated a key before and or you want a fresh start) a) As root backup .ssh directory for the user by moving it to ssh.backup # mv /home/user/.ssh/ ssh.backup 2) On the machine that we will generate the RSA-Key open a terminal and (Skip these step if you never generated a key before and or you want a fresh start) a) As root backup .ssh directory for the user by moving it to ssh.backup # mv /home/user/.ssh/ ssh.backup 3)On the machine that we will generate the RSA-Key open a terminal and a) Create the RSA key as the user you want to access the remote machine # ssh-keygen b) Press enter to accept defaults Generating public/private rsa key pair. Enter file in which to save the key (/home/manuken/.ssh/id_rsa): Created directory '/home/manuken/.ssh'. c)Press enter leave the passphrase blank Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/manuken/.ssh/id_rsa. Your public key has been saved in /home/manuken/.ssh/id_rsa.pub. The key fingerprint is: 8a:8f:d3:9e:db:d5:93:b7:c4:fd:d8:0a:21:e1:47:91 manuken@manuken-laptop.lan 4) Now copy the key to the remote machine . # ssh-copy-id -i $HOME/.ssh/id_rsa.pub user@remotehost 5) ssh in to the machine you should be able to access without a password. |
Need Help? Join Our Chat Room




0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home