LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Unable to connect to FTP server in Vmware (https://www.linuxquestions.org/questions/linux-networking-3/unable-to-connect-to-ftp-server-in-vmware-4175618721/)

Prashanth0555 11-30-2017 06:18 PM

Unable to connect to FTP server in Vmware
 
Hi Everyone,

I am practicing Linux in Vmware box. I tried to setup FTP server and a normal client machine.

1: Once I setup FTP, i am not able to connect to ftp server using "ftp" command.

Error: Command not found.

I have already installed vsftpd package using yum.

2: I am able to connect to FTP server using "sftp" server.
However, once I connect using sftp, its not directing to default ftp directory pub on ftp server. Instead it is directing to root directory on ftp server.

Kindly help.

bathory 12-01-2017 03:40 AM

Quote:

1: Once I setup FTP, i am not able to connect to ftp server using "ftp" command.

Error: Command not found.

I have already installed vsftpd package using yum.
Please mind that vsftpd is the ftp server, so if you want to use the command ftp, you need to install also the ftp client package. You didn't say your distro, but since you're using yum to install stuff, you should run:
Code:

yum install ftp
Quote:

2: I am able to connect to FTP server using "sftp" server.
However, once I connect using sftp, its not directing to default ftp directory pub on ftp server. Instead it is directing to root directory on ftp server.
FTP and SFTP are 2 different protocols.
The first is the FTP protocol and it connects on port 21 (uses also port 20 to transfer data)
SFTP is using ssh, so it connects to the server through port 22.

Prashanth0555 12-02-2017 10:46 AM

1 Attachment(s)
Quote:

Originally Posted by bathory (Post 5787365)
Please mind that vsftpd is the ftp server, so if you want to use the command ftp, you need to install also the ftp client package. You didn't say your distro, but since you're using yum to install stuff, you should run:
Code:

yum install ftp
FTP and SFTP are 2 different protocols.
The first is the FTP protocol and it connects on port 21 (uses also port 20 to transfer data)
SFTP is using ssh, so it connects to the server through port 22.


hi Bathory,

1. I am using Centos7 for both ftp server and client.
I have setup ftp server successfully. and also install ftp package in client as you suggested.
Now when I try to connect to ftp server, it says "No Route to host".
When I tried to ping server, it does not show any packets sent or received as shown in the attachment.
I have disabled firewall.


Kindly help.

bathory 12-02-2017 02:48 PM

Quote:

Now when I try to connect to ftp server, it says "No Route to host".
When I tried to ping server, it does not show any packets sent or received as shown in the attachment.
I have disabled firewall.
From the screenshot I see that you get response to ping. So it's ftpd that is not working.
Are you sure you've stopped the firewall? If you're, them it could be vware.

And you can try this to see if it helps

Prashanth0555 12-02-2017 03:41 PM

Quote:

Originally Posted by bathory (Post 5787872)
From the screenshot I see that you get response to ping. So it's ftpd that is not working.
Are you sure you've stopped the firewall? If you're, them it could be vware.

And you can try this to see if it helps

Hi Bathory,

I found that its an issue with the firewall which was blocking port 21. I have enabled it and it got fixed.

Thank you :)


All times are GMT -5. The time now is 07:00 AM.