NOTE: This article is written for our Classic Cloud Control Panel. You can access this interface from the New Cloud Control Panel by clicking your username in the upper-right of the control panel and choosing the previous control panel from the menu.
In this article, we will take a look at FTP, SSHFS and some of the popular FTP Clients. Because Cloud Sites does not offer full SSH access to the web servers, the other recommendations would be to use FTP, or you could use SSH (SSH Filesystem).
File Transfer Protocol (FTP) is a method for adding content to your website. As its name indicates, FTP is a means for transferring files from one computer to another, or from a local computer to a remote server.
For any website you set up, we will automatically create an FTP address (i.e. ftp.yourdomain.com). However, due to the nature of DNS propagation, your custom ftp address may not work during the initial 48 hour period after DNS for the site has been set up. If you experience any issues using your custom ftp address (ftp.yourdomain.com) during this time, you should use the universal ftp address, "ftp1.ftptoyoursite.com." This universal ftp address will allow you to add content to your site before DNS has fully propagated to The Rackspace Cloud.
Let's take a look at how to accomplish some of the most frequently needed tasks with FTP.
What is my FTP password?
You can find your FTP password in the Rackspace Cloud Control Panel
How can I add additional FTP users?
You can create multiple FTP user accounts through your control panel. You can the option to restrict that user to a specified directory in a site and create several users.
To create FTP users:
According to Wikipedia:
"SSHFS (SSH Filesystem) is a filesystem client to mount and interact with directories and files located on a remote server or workstation. The client interacts with the remote file system via the SSH File Transfer Protocol (SFTP), a network protocol providing file access, file transfer, and file management functionality over any reliable data stream that was designed as an extension of the Secure Shell protocol (SSH) version 2.0."
NOTE: In order to use SSHFS, you will need to install it on a Mac or a Linux machine. SSHFS cannot be used on a Windows machine.
Although full ssh access is not available you can mount your ftp location in Linux using SSHFS. *Windows/Mac users see footnote
Here are the common methods for installing SSHFS:
* For Debian:
apt-get install fuse-utils sshfs
* For Ubuntu:
sudo apt-get install fuse-utils sshfs
* For Fedora and Centos:
yum install fuse-utils sshfs
(Note: To install on CentOS you will need to set your machine up to include the EPEL repository first.)
* For Mandriva: urpmi:
urpmi fuse-utils sshfs
You will then need to choose and make a directory to mount the ftp storage location to. We'll use /mnt/remote for our example:
sudo mkdir /mnt/remote sudo chown [system-user]:[your-group] /mnt/remote/
Next you will add yourself to the fuse group:
sudo adduser [system-user] fuse
Now you will connect and mount the ftp storage location:
sshfs email@example.com: /mnt/remote/
Note: ftp.domain.com will be either ftp1.ftptoyoursite.com, ftp2.ftptoyoursite.com or ftp.domain.com depending on how you connect to ftp.
Additionally you can specify a remote path to mount such as www.domain.com/web/content.
sshfs firstname.lastname@example.org:www.domain.com/web/content/ /mnt/remote/
You will now be asked to accept the key from our system and then for your ftp user password.
Once mounted you can cd to your mounted directory and perform many basic commands that do not require root access including but not limited to:
tar gzip gunzip zip unzip chmod
You may also want to update the /etc/fuse.conf file to include a line such as below to ensure you do not lose connection while working:
ServerAliveInterval = 300
NOTE: For Windows and Mac users you can also use ExpanDrive to map your FTP storage location as a local drive.
We don't have a recommended File Transfer Protocol (FTP) client, but here is a list of the more popular FTP clients.
© 2011-2013 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License