• Sales: 1-800-961-2888
  • Support: 1-800-961-4454

Getting Started With Cloud Sites, 6-4 - FTP/SSHFS/FTP Clients


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 ClientsBecause 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

  • Log into the Rackspace Cloud Control Panel
  • Navigate to Hosting->Cloud Sites
  • Select a website from the list of active domains
  • Your FTP information can be found in the Viewing and Editing section of the initial page

 

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:

  • Log into the Rackspace Cloud Control Panel
  • Navigate to Hosting->Cloud Sites
  • Click on the domain you want to add another FTP user to
  • Click on the Security tab

  • In the Permissions For Editing Your Website section, click on Add A User

  • Next, create the new FTP user's username and password

  • Last, choose the directory level the new FTP user will have access to

  • Click Save to finish adding the new FTP user

 

SSHFS

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 accessfile 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 ftp-user@ftp.domain.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 ftp-user@ftp.domain.com: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. 

FTP Clients

We don't have a recommended File Transfer Protocol (FTP) client, but here is a list of the more popular FTP clients.

Commercial

Free

 

Back to the First 48 Guide







© 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


See license specifics and DISCLAIMER