To connect through SSH to a web-server without entering a password, one has to perform the following steps: 1. Run the command ssh-keygen $ ssh-keygen Save the key in the default location or any location you desire and provide the passphrase, which has to be atleast 4 letters long. The default location for the key is: