Solved

Why can't I connect to my VMware ESX server using FTP?

Posted on 2008-10-01
7
2,458 Views
Last Modified: 2012-05-05
I've connected to the ESX 3.5 server using VMware Infrastructure Client (VIC), and went to Configuration->Security Profile->Properties and enabled the FTP server port.

I then try to login using my handy FTP software tool "SmartFTP", by entering in the IP Address, the user name (root), my password, and the default FTP port of 21.  I then receive the error message of "No connection could be made because the target machine actively refused it."

Is there an additional permissions that needs to be enabled on the ESX server, or something else that needs to be done so that I can connect via FTP?

Thanks!
0
Comment
Question by:RTCexpert
  • 3
  • 3
7 Comments
 
LVL 9

Expert Comment

by:mgonullu
ID: 22619215
Is there any firewall running on the machine hosting your ESX?
0
 
LVL 7

Expert Comment

by:BogdanSUA
ID: 22619701
You cannot use root's credentials.  You need to create another user and ftp as the other user.

Alternatively you could try Veeam Fast SCP.
http://www.veeam.com/vmware-esx-fastscp.html
0
 

Author Comment

by:RTCexpert
ID: 22623314
By default ESX 3.5 has a firewall enabled, but I enabled FTP to pass through.

I run into the same issue with Veeam Fast SCP, which is I can't connect do to "No connection could be made".  I believe that I would also need to use a different user for this to work, other than the root user as well (I did enable Fast SCP, per their website instructions, to be able to get through the default ESX firewall).

It's been about 12 years since I've done anything with Linux or UNIX.

Is there some simple instructions on creating a new user account and granting it the permissions it requires for me to FTP and transfer files to the Linux based ESX 3.5 server?

Thanks!
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 7

Accepted Solution

by:
BogdanSUA earned 500 total points
ID: 22623713
Before I give you a crash course on adduer, passwd, chown, and chmod, do you know you can upload/download files to the ESX vmfs datastores via the VIC?

Begin crash course:
To create a new user issue the following commands from the service console:

adduser jdoe

Then give the user a password with this command
passwd jdoe


Granting permission/ownership is a little tricky.  You can grant permission directly to the user or to a group that the user belongs to.

To grant ownership to a user chown jdoe:root foo.txt
To grant ownership to a group chown root:users foo.txt

Then you got your permissions part which is done with chmod.  The highest permision is 777, which you should not use, but i'm telling you about it in order to explain something.

The first 7 is a user permission....but why 7? 4 + 2 + 1 = 7.  A 4 means read permission.  A 2 means write permission.  A 1 means execute permission.  So if you want read, write, execute, then its a 7.  If you want read and write its a 6.  If you want read and execute, its a 5....etc.

The second 7 is a group permission.  Use the same math logic from above.  If you want no permission for the group just use a zero for the middle digit.

The last 7 is for everyone else.  If you want to give no permission to everyone else just use a zero for the last digit.

So 777 is the highest permission, and should be used rarely if ever.

So if you type chmod 770 foo.txt your'e giving user and group who owns it full access to the file.
If you chmod 660 foo.txt you're giving read/write access to the user n group.

I hope this is making sense.  Otherwise let me know specifically what you're trying to accomplish and why and I can point you in the right direction.
0
 

Author Comment

by:RTCexpert
ID: 22624157
I would just use the the VIC to upload the files, but I want to be able to change to one of the higher level directories.

I'm not sure if there is any type of any issue with adding an additional folder within vmfs3 area used for the virtual machines, since the files I want to upload are ISO images to do installs?

If the above is not an issue, then I should not have to do the FTP and will just create a new folder within the vmfs3 area for the ISO files I have.

Thanks a lot for your help!

Peter
0
 
LVL 7

Expert Comment

by:BogdanSUA
ID: 22629283
There is no issue with creating a temporary holding folder on your VMFS volume.  You can drop your data in there via the VIC, and then use the "mv" command to move it to a different directory.

Example: mv foo.txt /home/bogdan/
0
 

Author Closing Comment

by:RTCexpert
ID: 31502159
Thanks for your help!  We ended up using another solution to get around this FTP issue.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now