1. If you have no public and private ssh keys run the following command and press Enter for all the input requests:
$ ssh-keygen
2. Copy your public key to the remote server you want to log-in to via ssh without entering the password:
$ ssh-copy-id -i ~/.ssh/id_rsa.pub username@remote_host
3. Try to log-in to the server without entering the password:
$ ssh username@remote_host
No comments:
Post a Comment