SFTP works but FTP doesnt RH6
I need to use FTP command instead of SFTP, for some reason im getting "connection refused"when I try.
The firewall has ports 21,22 open. Having a problem figuring out
Responses
See Tom's good points above, his points are highly likely culprits.
I recall with RHEL 6 that they began using vsftpd as a kind of standard.
What is the output of the following on the system running (s)ftp? (and grep for ftp, and note the output)
root@yoursystem # netstat -taupel | grep ftp
On my RHEL 6.6 server running vsftpd, I get the following for output for the above command:
tcp 0 0 *:ftp *:* LISTEN root 15001 2824/vsftpd
if you are using vsftpd, make sure to configure /etc/vsftpd/vsftpd.conf
Take a look if vsftpd is available up/running using "rpm -qa | grep ftp" and chkconfig/service/"ps -ef| grep ftp" commands
A couple of other things
- Try it temporarily without a firewall
- Try it temporarily in selinux permissive mode
ADDED: sftp is ssh based, and ftp is not.
ADDED: see this link where they discuss "pam_service_name=" (and verify if this is valid or good to proceed with or not), and absolutely compare with this Red Hat documentation. Take time to verify this sort of option, and weight the differences.
Again, really see Tom's suggestions first.
Hi Gene,
Did you try to login to the ftp server locally?
for the default config is an anonymous ftp server.
Are you trying to use it as an user based login ftp server? If so, you need an user login ftp user. You need to change the config.
So let's recap: do not get a login prompt, but cannot login or are you unable to connect from an outside source, but are able to login from the local server?
Kind regards,
Jan Gerrit Kootstra
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
