LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-30-2017, 07:18 PM   #1
Prashanth0555
LQ Newbie
 
Registered: Nov 2017
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 12-01-2017, 04:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,900

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
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.
 
Old 12-02-2017, 11:46 AM   #3
Prashanth0555
LQ Newbie
 
Registered: Nov 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
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.
Attached Thumbnails
Click image for larger version

Name:	ftp.JPG
Views:	3
Size:	87.0 KB
ID:	26457  
 
Old 12-02-2017, 03:48 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,900

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
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
 
Old 12-02-2017, 04:41 PM   #5
Prashanth0555
LQ Newbie
 
Registered: Nov 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by bathory View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] WS-FTP unable to connect to server after software update mfoley Linux - Networking 2 03-02-2016 12:00 AM
unable to connect to ftp server(pure-ftpd) with ssl/tls enabled rtz Linux - Networking 2 11-24-2014 04:21 PM
unable to connect to Red Hat grading server through VMware bridged in windows 7 jbishop Linux - Newbie 2 10-14-2011 12:27 AM
Unable to connect to redhat 5 server using ssh, ftp. Avadhut Linux - Newbie 6 03-12-2009 01:18 AM
Suddenly unable to connect to my web server and my ftp server. HELP! Silly22 Linux - Software 4 05-23-2004 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration