Troubleshooting vsftpd.

Issues related to configuring your network
User avatar
TrevorH
Forum Moderator
Posts: 29961
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Troubleshooting vsftpd.

Post by TrevorH » 2020/08/22 11:10:28

That says SFTP on it. SFTP is not ftps. They are different things and use different tcp ports.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

hack3rcon
Posts: 710
Joined: 2014/11/24 11:04:37

Re: Troubleshooting vsftpd.

Post by hack3rcon » 2020/08/22 12:24:55

TrevorH wrote:
2020/08/22 11:10:28
That says SFTP on it. SFTP is not ftps. They are different things and use different tcp ports.
I installed the vsftpd on CentOS 8.
With these settings other clients can connect to the server.

User avatar
TrevorH
Forum Moderator
Posts: 29961
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Troubleshooting vsftpd.

Post by TrevorH » 2020/08/22 12:37:39

You do know that ftps and sftp are two completely and utterly different things?

ftps is ftp over SSL and the server to use for that is vsftpd. It will listen and accept connections on tcp port 990 and uses port 989 as its command channel port. It uses an SSL certificate that you must supply.

sftp uses openssh as its transport. It uses tcp port 22 (or whatever you have configured ssh to use). It doesn't need an SSL certificacate as it uses host keys instead.

In your screenshot of the Windows client, you show it is configured to use SFTP not ftps. That means it is connecting to the ssh server on your system not to the vsftpd server. If you're trying to fix a problem with the SFTP client by modifying the vsftpd configuration then you're modifying the wrong thing. The vsftpd configuration has nothing at all to do with the sftp server that you are running on the machine.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

hack3rcon
Posts: 710
Joined: 2014/11/24 11:04:37

Re: Troubleshooting vsftpd.

Post by hack3rcon » 2020/08/22 13:50:52

TrevorH wrote:
2020/08/22 12:37:39
You do know that ftps and sftp are two completely and utterly different things?

ftps is ftp over SSL and the server to use for that is vsftpd. It will listen and accept connections on tcp port 990 and uses port 989 as its command channel port. It uses an SSL certificate that you must supply.

sftp uses openssh as its transport. It uses tcp port 22 (or whatever you have configured ssh to use). It doesn't need an SSL certificacate as it uses host keys instead.

In your screenshot of the Windows client, you show it is configured to use SFTP not ftps. That means it is connecting to the ssh server on your system not to the vsftpd server. If you're trying to fix a problem with the SFTP client by modifying the vsftpd configuration then you're modifying the wrong thing. The vsftpd configuration has nothing at all to do with the sftp server that you are running on the machine.
Thus, I must open port 990 and port 989 to solve it?
Why other clients could connect to the server?

Post Reply

Return to “CentOS 8 - Networking Support”