ProFTPD 1.3.3-8ProFTPD is a full featured, open-source FTP server. Available on almost any Unix-like system. The below instructions will show you how to install it on ESXi, create a user, and point the FTP root to your datastore containing your VM guests.
|
1.
Download ProFTPD bundle
2. Upload installation bundle to your host
using the vSphere datastore
browser
a.
Open
and connect the vSphere client to the host
b.
Select
the host in the left hand pain, then goto the
configuration tab
c.
In
under the "Hardware" section, select "Storage"
d.
Right
click on the datastore that you want to upload to,
and select "Browse Datastore..."
e.
Use
the Datastore browser to create an "Apps"
directory in the root
f.
Upload
X:\Lantech\ServerApplications\VMWare\ESXi 5\ProFTPD-1.3.3-8-offline_bundle.zip
to the Apps directory you just created
3. Run the installation command
esxcli software vib
install --no-sig-check -d /vmfs/volumes/datastore1/Apps/ProFTPD-1.3.3-8-offline_bundle.zip
(replace datastore1 with the name of your datastore)
4. Check to verify that firewall rules were
created
a.
While
still on the Configuration tab, select “Security Profile” in under the Software
section
b.
Look
for a service called “proftp”
c.
Look
for a Firewall rule called “ProFTPD” with incoming
port 21,49152 – 49999 open.
5. Edit the FTP root path
a.
Connect
to the host via SSH
b.
Edit
the /etc/proftpd.conf find and change the default
startup directory from “/” to “/vmfs/volumes/datastore1”
6. Create the FTP user for backups
a.
In vSphere client, switch to the “Local Users & Groups”
tab
b.
Click
on the “Users” button
c.
Right
click in any empty white space of this section, and select “Add”
d.
Fill
in the Login, and Password fields. (Login = “userftp” Pass = %current UserFTP password%)
e.
Click
OK to create user
f.
In
your SSH session, edit the /etc/passwd and change the
line for “userftp”, Change the user path and the
shell path, it should look something like the following: