How to Use sFTP to Connect to Your Web Hosting

You can use sFTP to upload and manage files on your web hosting.

Login Details


Web Hosting only supports the sFTP protocol, which is more secure than regular FTP. When configuring your client, note that sFTP uses port 22, which is the standard sFTP port, and not port 21, which is used by regular FTP.

For PHP web hostings, you will find login details in the “Sites” section of your web hosting management page, within each Site’s page. For other Node.js or Python web hostings, you’ll find this information in the “Deploy” section of your web hosting’s management page.

The information provided is:

  • User: Use this as your username when connecting via sFTP. It is your web hosting’s “unique identifier”, a 4- to 8-digit number that is generated for each web hosting and is not the same as your Gandi account’s username.

  • Password: Your web hosting password, which you defined at creation time and may be different from your account password. Use it as your sFTP password.

  • Server: The sFTP server’s hostname. Start a connection to this server and enter your username and password to gain access to your web hosting’s files.

  • Directory: Once you’re connected, you’ll find your website’s or application’s files in the specified path.

In your sFTP client, also remember to specify the following information:

  • Protocol: sFTP

  • Port: 22

SSH Key Authentication


This only concerns sFTP and Git access. SSH key authentication is not available for SSH console access.

Instead of using a password to login to your web hosting via sFTP, you can use a public SSH key. You can add the key in the “Security” section of your web hosting’s management page.