Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.