Installing and Running vsftpd in CentOS Gallery image available at Windows Azure Virtual Machines for Linux

Step 1: Install vsftpd

[root@avkashcentnew ~]# yum install vsftpd

Package        Arch           Version                    Repository       Size
 vsftpd         x86_64         2.2.2-6.el6_2.1            updates         149 k

Transaction Summary
Install       1 Package(s)

Total download size: 149 k
Installed size: 331 k
Is this ok [y/N]: y
Downloading Packages:
vsftpd-2.2.2-6.el6_2.1.x86_64.rpm                        | 149 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : vsftpd-2.2.2-6.el6_2.1.x86_64                                1/1

  vsftpd.x86_64 0:2.2.2-6.el6_2.1


Step 2:  Edit vsftpd conf file as below:

               #vi /etc/vsftpd/vsftpd.conf:


Step 3: Be sure that vsftpd and iptables services are running

              # service vsftpd start
              # service iptables start


Step 4: Add an EndPoint in your Virtual Machine configuration for vsftpd:


Step 5:  Get the Virtual Machine IP Address configure FileZilla client as below to connect to CentOS Virtual Machine:



Once the SFTP connection is made correctly, the files are displayed as below in FileZilla:

Keywords: Windows Azure, Virtual Machine, Linux, CentOS

Comments (5)

  1. Paolo says:

    just a quick note to highlight that in Ubuntu iptables is not a service

  2. NoName says:

    Well, you don't need to install vsftpd to connect by sftp…

    sftp is included in ssh.

    However, is it possible to access files via ftp but not sftp?

    I am always getting errors when connecting via ftp, no matter vsftpd under linux or IIS/filezilla ftp server…

  3. Rish says:

    This does not seem to work for me as well. I am using Ubuntu server, I have set passive mode, but is not able to retrieve the directory list.

  4. David P says:

    I was able to get this to work by adding an endpoint to tcp 22 and connecting via sftp.

  5. Sergio López says:

    Really ? you are connecting via sftp that is port 22 !!!!

Skip to main content