How to setup SSH Private key authentication in Linux
I need to generate key file.
Client computer need to login using that key. eg: ssh -i /mykeyfile.pem user@hostname How to configure this..? |
This sums up pretty well how to do the key based authentication:
https://help.ubuntu.com/community/SSH/OpenSSH/Keys |
on the client machine, generate a key:
ssh-keygen -t rsa -v 4096 This will create two new files in .ssh/ id_dsa and id_dsa.pub paste the contents of id_dsa.pub into ~/.ssh/authorized_keys on the host machine. (note that ~/ refers to your home directoy on the host machine) Open a new ssh session and test it. It should log you in automaticalyl. |
Code:
###### DIRECTIONS FOR CREATING RSA KEY################ |
All times are GMT -5. The time now is 08:04 PM. |