LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 06:18 PM   #1
Prashanth0555
LQ Newbie
 
Registered: Nov 2017
Posts: 4

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, 03:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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, 10:46 AM   #3
Prashanth0555
LQ Newbie
 
Registered: Nov 2017
Posts: 4

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:	22
Size:	87.0 KB
ID:	26457  
 
Old 12-02-2017, 02:48 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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, 03:41 PM   #5
Prashanth0555
LQ Newbie
 
Registered: Nov 2017
Posts: 4

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



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-01-2016 11:00 PM
unable to connect to ftp server(pure-ftpd) with ssl/tls enabled rtz Linux - Networking 2 11-24-2014 03:21 PM
unable to connect to Red Hat grading server through VMware bridged in windows 7 jbishop Linux - Newbie 2 10-13-2011 11:27 PM
Unable to connect to redhat 5 server using ssh, ftp. Avadhut Linux - Newbie 6 03-12-2009 12:18 AM
Suddenly unable to connect to my web server and my ftp server. HELP! Silly22 Linux - Software 4 05-23-2004 04:42 PM

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

All times are GMT -5. The time now is 09:44 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
Open Source Consulting | Domain Registration