Create connection to host without password need
Well, the first step is to create a RSA key. This can be done by executing:
ssh-keygen -t rsa
The second step is to tranfer this key to host so it can authenticate out connection. You shall transfer only the .pub file into ~/.ssh/authorizedkeys folder by executing:
scp ~/.ssh/myrsakey.pub <username>@<hostname>:~/.ssh/authorized_keys
Now, you must be able to ssh the host without using your password:
ssh <user>@<hostname>
Commend below if you find this article usefull!
Σχόλια
Δημοσίευση σχολίου