File Transfer Protocol (FTP) is a network protocol that is commonly used to transfer website data from your local computer to the remote web server. This allows you to develop a website locally (on your computer) and then upload it to the remote server to be published to your website.
Once you're connected and have uploaded your files, you can use the following article to create and edit files within Filezilla.
To ensure a secure connection when connecting to your server, make sure to use port 22. This is also known as connecting via SFTP. View the 'Security' section below for further details.
Locating your FTP login credentials
You will need the following information to log into your web server:
The following sections explain how to obtain each one.
Finding your FTP server hostname
If your site is hosted at DreamHost
If you have added hosting to your domain and the domain's DNS is set up to point to your hosting at DreamHost, you may use your domain's name as the FTP hostname. For example, if your website is named 'http://www.example.com' just use example.com
Do not add http://www in front of the domain as that may cause it not to connect.
Here is what it would look like in Filezilla:
If your site is not hosted at DreamHost
If you have added hosting to your site, but have not pointed your DNS to DreamHost yet, you can still connect to the server using the server's hostname. To find out what server you are on, log into the DreamHost panel and navigate to (Panel > ‘Billing & Account’ > ‘Manage Account’).
Scroll down to the section titled 'Domains Hosted'. There you will see your domain name. To the right, you will see your user and the server on which it’s configured:
In the above screenshot the server is named ‘gervais’. So in this example, you could use the hostname gervais.dreamhost.com to log in.
VPS, Dedicated, and DreamPress hostnames
|Type of server||How it appears||Hostname to use|
Locating the correct FTP user
You can find the FTP username that is attached to your domain's hosting in the panel. Just log in and navigate to (Panel > ‘Domains’ > ‘Manage Domains’):
Once there, you’ll see the username to the right of the domain under the ‘Web Hosting’ column:
Here is what it would look like in Filezilla:
Resetting your FTP user's password
If you don't know your user's password, you can change it in the panel. Log in and navigate to (Panel > ‘Users’ > ‘Manage Users’):
- Click the Edit button to the right of your username to edit it. The following page opens:
- On this page, you can change the password. Update it and then click the Save Changes button at the bottom.
After you’ve changed your password, please allow up to 20 minutes for it to update in the DreamHost system.
Here's an example using Filezilla:
Choosing the FTP port
To connect, use the following port number setting for your type of user :
- FTP user
- connect with port number 21 (NOT RECOMMENDED)
- SFTP or SHELL user
- connect with port number 22
You can check if your user is an FTP/SFTP/SHELL user in your panel at (Panel > ‘Users’ > ‘Manage Users’).
It is highly recommended that you use port 22 with an SFTP or Shell user as it helps to ensure your data is safe when connecting. View the 'Security' section below for details on how to change your FTP user to an SFTP user.
Here's an example using Filezilla using port 22:
Finally, click 'Quickconnect' to log into your server:
Where do I put my files?
Once you're logged in you'll see several files and folders. View the following article for instructions on where to upload your site files:
Unfortunately, FTP (port 21) is not considered a "secure" protocol. This means that incoming/outgoing data is unencrypted and in plain text. Because the data is unencrypted, an exceptionally sneaky person could eavesdrop on what you're sending.
Difference between FTP and SFTP
SFTP is a network protocol designed to provide secure file transfer over the secure shell (SSH) protocol. SFTP is NOT just FTP run over SSH, but rather a new protocol. It is often called Secure FTP because it uses an encrypted transport layer.
Setting an existing FTP user to an SFTP user
Navigate to the (Panel > 'Users' > 'Manage Users') page. To the right of your username, you'll see if its an FTP, SFTP, or Shell user:
- Click the 'Edit' button to the right of the user.
- Choose the radio button for 'SFTP user', then click the 'Save Changes' button.
- Wait about 20 min for the new settings to update. You can then log into your server using port 22.
Creating an SFTP user when editing a domain
When you are editing or adding a new domain and add a new user during that process, it defaults to SFTP automatically and FTP is disallowed.
If you need FTP for some reason, you still have the option to uncheck the box 'Disallow FTP?' for the newly created user, but this is NOT RECOMMENDED. You can do that on the (Panel > ‘Users’ > ‘Manage Users’) page by editing the user:
Disabling FTP on a VPS server
To the right of the server, click the 'Configure' button. Click the dropdown to the right of 'FTP server' and select 'Inactive'. Finally, click 'Save ps123456's settings' at the bottom to save.
Notes on using SFTP
When logging in to your account using SFTP you may notice some differences from what you would normally see when you logged in with a normal FTP user.
- If you want to ensure that a particular user's home directory cannot be accessed by other users (even those in your same group) you can enable the "Enhanced security?" option for that user.
- You may notice that you can also access other directories above the /home directory. That's normal, as all users have some level of access to those directories. However, as a regular user you won't be able to view files that you don't have access to, nor are you able to harm the server.
- How do I show hidden files? article for further information. : On a Unix system, hidden files are those that begin with a period (.) in their name. As with FTP clients, SFTP clients usually have an option to "enable/disable viewing hidden files". If that is enabled, you'll be able to see these files/directories (if your user has permissions to do so). If you are having problems deleting a directory (assuming you have the correct permissions to delete) and it gives you an error saying "directory not empty", it may be that there are hidden files/directories in that directory that your client is not allowing you to see. Check your program options before going any further. If you do have the option enabled to view hidden files/directories and still cannot delete a directory, please contact support for assistance. Give support the server, user account, and full path to the directory you are trying to delete so they can investigate. View the
Warning: The server's host key is unknown
When you originally log into a DreamHost server, you may see the following warning:
The server's host key is unknown. You have no guarantee that the server is the computer you think it is.
View the following article for further information on how to confirm the key values you're seeing and log into your server.
- List of FTP client software
- Where do I put my files once connected via FTP?
- How do I show hidden files on my FTP client?
- WinSCP — Uploading to your server
- Anonymous FTP
- WebFTP panel client