Automatic authentication using SSH keys can be set up.

Be aware, the SFTP format and SSH format is different. Step 2 is therefore necessary to make your SFTP client authenticate using keys. 

  1. On your host, make a folder in the site root directory named .sftp
  2. On your computer, run the following command to create a properly SFTP formatted SSH key:
    ssh-keygen -e -f ~/.ssh/
  3. Save the output of this as the file name authorized_keys, and upload it to the .sftp/ folder on the server.

After this, your client should automatically connect to the server using that key.

Did this answer your question?