At times i find my self type passwords just too often, that again make me lose focus on the stuff i wanted to do.
At those times it is kinda convenient to not have to type password during a ssh-login. Other reasons might be.... automatically control servers, configuration steps ... etc
At the client, type this in terminal:
$ ssh-keygen -t rsa
Then copy the .pub file to the remote server
$ ssh-copy-id -i .ssh/id_rsa.pub user@host
NOTE: ssh-copy-id is available on Linux distros, but while doing this on an OpenBSD machine you have to copy the public key into authorized_keys.
$ scp .ssh/id_rsa.pub host:.ssh/authorized_keys
Ingen kommentarer:
Legg inn en kommentar