Automatic authentication using SSH keys can be set up.
Time needed: 5 minutes.
Be aware, the SFTP format and SSH format is different. Step 2 is therefore necessary to make your SFTP client authenticate using keys.
- Create .sftp folder
On your host, make a folder in the site root directory named
- Generate SSH Key
On your computer, run the following command to create a properly SFTP formatted SSH key:
ssh-keygen -e -f ~/.ssh/id_rsa.pub
- Save and upload key
Save the output of this as the file name
authorized_keys, and upload it to the
.sftp/folder on the server.
- Connect to server
After this, your SFTP client should automatically connect to the server using that key.
Give us your feedback on this article
Did this help you?
We have launched in the UK! 🇬🇧
Servebolt Cloud UK is now available to all clients. Our London data center will ensure that all clients with their majority of visitors in the UK experience extremely fast websites!