LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-11-2011, 03:39 PM   #1
Lapildora
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: 0
Smile How Run FTP on CentOS


I would like to be able to run FTP from my personal computer to a dedicated server over the internet. I am have CentOS release 5.5 (Final). I am a newbie on Linux.

can somebody tell me now what do i need to do to run my FTP.


I did run this command
# yum install vsftpd and it went ok.

*****************************************

I think a open port 21 when i run the commands down below

Open FTP port
Open /etc/sysconfig/iptables file, enter:
# vi /etc/sysconfig/iptables
Append following line to open ftp port 21 before REJECT line:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT

************************************

I am running

Linux server 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU


***************************************


when i type

# ftp ip-of-my-server

it comes with this error massage

ftp: connect: Connection refused

**********************************

what i need to do to access the ftp connection?

Last edited by Lapildora; 05-11-2011 at 03:42 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-11-2011, 04:03 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,988

Rep: Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315
Quote:
Originally Posted by Lapildora View Post
I would like to be able to run FTP from my personal computer to a dedicated server over the internet. I am have CentOS release 5.5 (Final). I am a newbie on Linux.

can somebody tell me now what do i need to do to run my FTP.

I did run this command
# yum install vsftpd and it went ok.
*****************************************
I think a open port 21 when i run the commands down below

Open FTP port
Open /etc/sysconfig/iptables file, enter:
# vi /etc/sysconfig/iptables
Append following line to open ftp port 21 before REJECT line:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT

I am running Linux server 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU

when i type
# ftp ip-of-my-server
it comes with this error massage ftp: connect: Connection refused

what i need to do to access the ftp connection?
Well, you installed FTP...did you configure it or turn it on?

http://www.cyberciti.biz/tips/rhel-f...tallation.html
 
1 members found this post helpful.
Old 05-11-2011, 04:06 PM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,911
Blog Entries: 14

Rep: Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142
Run "lsof -i :21" on the server. This will show you if anything is listening on port 21.

Run "chkconfig --list vsftpd" - my guess is you'll see "off" for all run levels shown.

You can start vsftpd by running "service vsftpd start". After that rerun the lsof above and you should see it running.

You then need to use chkconfig to set vsftpd to start whenever you reboot (assuming you want it to automatically start).

You may also need to adjust the vsftpd.conf.

Typing "man vsftpd" gives more information for the daemon. Typing "man vsftpd.conf" gives more information for the configuration file. Typing "man chkconfig" gives you more information for use of this command. For most things you do in Linux/UNIX there are built in manual pages so often typing "man <command>" is a good first starting point.

Having said all the above I'd suggest you NOT run ftp on your server. It is not a secure protocol so it is better to use things like scp/sftp which use the same secure port as ssh. For MS-Windows boxes that don't have native scp/sftp commands you can download and install WinSCP which allows you to do scp/sftp connections to remote servers.
 
2 members found this post helpful.
Old 05-11-2011, 04:23 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,988

Rep: Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315Reputation: 4315
I agree with MensaWater...FTP isn't a good thing to use. That tutorial will show the OP how to turn it on and configure it, though...
 
Old 05-11-2011, 06:01 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,107

Rep: Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478
i take it you are just trying to download files using ftp ?
if so have a look at " Filezilla"

or

do you want to RUN a ftp server (vsftpd )?

cent has a few terminal ONLY ftp clients in the repos
 
Old 05-11-2011, 06:51 PM   #6
Lapildora
LQ Newbie
 
Registered: May 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you! MensaWater, I will do your sugestions. I will read more about scp/sftp.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Centos LAMP + FTP thefoyer13 Linux - Newbie 5 03-13-2011 06:27 PM
FTP on Centos rmuralidharsharma Linux - Newbie 10 08-23-2010 01:27 AM
FTP Server in Centos Centos_user Linux - Server 12 02-26-2010 12:39 PM
LXer: CentOS FTP Course LXer Syndicated Linux News 0 06-18-2009 09:20 AM
Problem in setting ftp on CentOS 4.6 vikram8jp Linux - Newbie 6 10-16-2008 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:36 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration