SFTP (Secure File Transfer Protocol) is a secure way to manage and transfer files within your web space, making sure your data stays safe while being transferred.
In this guide, you will find important information on how to activate SFTP, set up your password, and connect using an SFTP client.
-
Activate SFTP for my web space
1. Click here to open the SSH & FTP section under Advanced settings in the Control Panel.
2. Under SSH and SFTP Administration, set Allow SSH & SFTP access to On.
Your domain's specific connection details will also be displayed here.Need to set up or change the SSH/SFTP password?
Click the Send button to send a password-generating email to your contact email address. Continue following the steps from step 4 in the section Create or change the SSH/SFTP password. -
Create or change SSH/SFTP password
1. Click here to open the SSH & FTP section under Advanced settings in the Control Panel.
2. Under SSH and SFTP Administration, click the Send button to send an email to your contact email address.
3. Open the inbox of your contact email address and find the email with the subject "Change SSH/SFTP password for the domain [one-example.com]".
4. Open the email and click the Reset password button.
5. On the page that opens, type in a password of your choice twice. Then click Save.You can now log in with SFTP using clients such as Filezilla or Cyberduck.
-
Connect to your web space using SFTP
To connect via SFTP, install a client on your computer, such as FileZilla or Cyberduck.
Note: Make sure SFTP access is enabled in your one.com Control Panel. If needed, follow the steps in the section Activate SFTP for my web space first.
1. Open the SFTP client and enter the following connection details, replacing yourdomain.com with your own domain:
- Host: ssh.yourdomain.com
- Username: yourdomain.com
- Password: The password set for SFTP/SSH via your Control Panel
- Port: 22
2. If this is your first time logging in with SFTP on this computer, you must approve the connection. Click the Connect button in the client to log in.Forgot your password?
No worries! Just follow the steps in the section above Create or change SSH/SFTP password. -
Where can I find my private folder?
When you first log in, you'll find yourself in your public folder, called httpd.www. This public folder, also known as the root folder, can be accessed via a web browser, and this is where your website is located.
You also have a private folder called httpd.private. Web space backups created with the one.com Backup & Restore tool can be found in the folder called backups. To navigate to, for example, your private folder, click on your domain name in the tree structure, and all existing folders will be shown.
In this screenshot, you can see how it looks when you are using FileZilla as a client.
-
Change the file permissions via an SFTP client
Setting file and folder permissions determines who can read, write and execute your files.
For detailed instructions, check our guide on How to change file permissions via an SFTP or FTP client.
-
Backup your web space via SFTP
Making a backup of your web space via SFTP provides a secure method to transfer files between your web server and local computer.
1. Log in using an SFTP client like FileZilla or Cyberduck. Follow the steps in the section Connect to your web space using SFTP above if needed.
2. To the left, navigate to the folder on your computer where you want to save your backup.
3. To start the download, select all files and folders to the right and drag them to the chosen folder.
4. Wait until all files are downloaded and make sure there are no failed transfers.
5. Your backup is now saved on your computer.Note: If your website is made with a CMS like Wordpress, don't forget to also make a backup of your database.
Related articles: