On your host, make a folder in the host root directory named .sftp
On your computer, run the following command to create a properly formatted SSH key:
ssh-keygen -e -f ~/.ssh/id_rsa.pub
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.
Published on: 04 / 01 / 2018