cancel
Showing results for 
Search instead for 
Did you mean: 

I can't ftp to my RHEL 5

 
Yaboto
Super Advisor

I can't ftp to my RHEL 5


I have just freshly installed a linux enterprise version 5 OS. I can PING but I cannot FTP.
Please, what can I do ?
11 REPLIES
Steven E. Protter
Exalted Contributor

Re: I can't ftp to my RHEL 5

Shalom,

netstat -an | grep 21

# See if anything is listening on port 21 (ftp)

service vsftpd status

# That will tell you if its running.

service vsftpd start

# That will do a one time start.

chkconfig --list vsftpd

# display the start configuration

chkconfig vsfptd on

# Changes the start configuration to start the daemon.

Note, you can use any ftp server you want. vsfptd is the default. I'm using pure-ftp because its integrated with ispconfig, which I use as to simply system administration on some of my Linux boxes.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven Schweda
Honored Contributor

Re: I can't ftp to my RHEL 5

"I cannot" is not a useful problem
description. It does not say what you did.
It does not say what happened when you did
it.

> Please, what can I do ?

You might start by showing the actual
commands you used, with their actual output.
Yaboto
Super Advisor

Re: I can't ftp to my RHEL 5


Please, here is the status of the VSFTPD service:


[root@localhost ~]#
[root@localhost ~]# service vsftpd status
vsftpd: unrecognized service
[root@localhost ~]#


Please Advice
Rick Retterer
Respected Contributor

Re: I can't ftp to my RHEL 5

Shalom,

So what happens if you attempt to use sftp to connect and ftp to and from your linux system?


By default RHEL 5 systems are securely locked down so that normal telnet and ftp are disabled. But you should be able to use ssh and sftp to perform the same tasks.

# sftp hostname

Connecting to hostname...
The authenticity of host 'hostname (xxx.xxx.xxx.xxx)' established.
RSA key fingerprint is .
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'hostname' (RSA) to the list of known hosts.
username@hostname's password:
sftp>


-Stone
- Rick Retterer



Albert Smith_1
Regular Advisor

Re: I can't ftp to my RHEL 5

FTP is not normally installed on a basic system (if a basic system was installed).

If you want to use FTP (not sure why you would when you can use sftp or scp instead).

yum install vsftpd
chckonfig --level 345 vsftpd on
service vsftpd start

dirk dierickx
Honored Contributor

Re: I can't ftp to my RHEL 5

do you really need ftp? do you only want to transfer some files to your server?

use scp instead, it is a secure protocol while normal ftp is not.
Alan_152
Honored Contributor

Re: I can't ftp to my RHEL 5

Steven E. Protter
Exalted Contributor

Re: I can't ftp to my RHEL 5

Shalom,

I recommend these steps:

yum -y install vsftpd
chckonfig vsftpd on
service vsftpd start

Important note. The default configuration of vsftpd is anonymous file transfer is to allow it.

The second you finish this process, you need to change the /etc/vsftpd/vsftpd.conf file, turn off anonymous ftp and restart the service as noted above.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Yaboto
Super Advisor

Re: I can't ftp to my RHEL 5

Here is the result I got:

[root@localhost cdrom]# yum -y install vsftpd
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package vsftpd available.
Nothing to do
[root@localhost cdrom]# yum install vsftpd
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package vsftpd available.
Nothing to do
[root@localhost cdrom]#

If I have to get the FTP package from one of the 6 CDs, how would I be able to locate them ?

Regards,
Alan_152
Honored Contributor

Re: I can't ftp to my RHEL 5

If you can't find the RPM you need via yum or on the cd set, you might try downloading it here: http://rpm.pbone.net/index.php3/stat/2/simple/2
Yaboto
Super Advisor

Re: I can't ftp to my RHEL 5

Thank you for your contributions !