Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > FAQs > How do I set up an FTP server?

How do I set up an FTP server?

Background Information

Setting up an FTP Server on a RightScale server or cloud instance can enable you to upload and download files to and from the instance.  This is not the preferred method of uploading files to your servers, but some may want to do it anyway (SSH/SCP via PKA/PKI is the recommended method).

 


Answer

RightScale OSS provides a ServerTemplate, vsftpd FTP Server which can be used to set up an FTP server as desired - insecure or with FTPS (SSL).

Alternatively, you can set up a legacy FTP server with xinetd. The following example sets up ftpd on EL/CentOS or Debian/Ubuntu systems (you may find that additional configuration is required depending on the distribution used).

#!/bin/bash -e

yum -y install xinetd || ( apt-get -y install xinetd ftpd )

useradd ftp

if [ -e /usr/share/doc/ftpd/examples/ftpd.xinetd ]; then
    cp -v /usr/share/doc/ftpd/examples/ftpd.xinetd /etc/xinetd.d/ftpd
    sed -i "s/flags		= IPv6/#flags		= IPv6/" /etc/xinetd.d/ftpd
    mkdir -p /home/ftp/ftp
    chown -R ftp:ftp /home/ftp
else
    cat > /etc/xinetd.d/gssftp << EOF
service ftp
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = ftp
        server          = /usr/kerberos/sbin/ftpd
        server_args     = -l
        log_on_failure  += USERID
        disable         = no
}
EOF
fi

service xinetd restart

Important Notes

  • You need to open TCP port 21 in your Security Groups (as required) to allow insecure FTP access
  • FTP is not secure and generally not recommended, but it is convenient.  Use at your own risk!  Consider the following FAQs:
    • With RightScale there are solutions using serveral methods.
    • Use any SFTP client with your (or the instance's) private SSH key. See the SSH FAQ.

External Links

Viewing 1 of 1 comments: view all
Edited
Posted 11:02, 25 Oct 2013
Viewing 1 of 1 comments: view all
You must to post a comment.
Last modified
15:51, 29 Jan 2015

Tags

Classifications

This page has no classifications.

Announcements

None


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.