LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-12-2004, 03:59 AM   #1
bahuguna_n
LQ Newbie
 
Registered: Jul 2003
Location: India
Posts: 8

Rep: Reputation: 0
using ftp


hi all. i use telnet to connect to the localhost. how can i connect to the host using ftp. i have tried it a few times but it displays some error message connection refused". i want to transfer some of my files from server to client.in my server i've allowed permission for ftp.still it's unable to connect.what could be the problem. how can i rectify it.please help me out.
thanks in advance
Nishchaya
 
Old 01-12-2004, 04:09 AM   #2
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi!

I'm a little confused. You say that you connect to localhost. That should be like connecting within the same machine. I assume that you are trying to connect between two machines. There are a couple of problems that are possible reason for connection to fail:

o The server has a firewall that doesn't allow incoming connections to ftp port (default ftp port is 21)

o The server has no ftpd (ftp daemon) running.

We may be able to help you better if you tell us what Linux distribution your server uses.

Regards
Martin
 
Old 01-13-2004, 01:54 AM   #3
bahuguna_n
LQ Newbie
 
Registered: Jul 2003
Location: India
Posts: 8

Original Poster
Rep: Reputation: 0
re: using ftp

i am a little confused.


hi, you'va got me right. actually the name of the server was localhost, so i wrote it like that.
well, i am using RHlinux 9 and i have allowed incoming ftp,telnet, etc. in my security options. what should i do now? i think i haven't done it correctly.how to enable ftp?
thanks in advance
Nishchaya
 
Old 01-13-2004, 02:18 AM   #4
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi!

I don't think you can name a server 'localhost'. If you do a name lookup in the client, you will see something like this:
Code:
~> nslookup -sil localhost
Server:         XXX.XXX.XXX.XXX
Address:        XXX.XXX.XXX.XXX

Name:   localhost
Address: 127.0.0.1
That address (127.0.0.1) is the loopback interface. That is like a network interface that's internal to one machine. You can connect a client and server to it for testing purposes, but it doesn't connect to the other machines in the network.

Try to find the server's IP address and connect with that instead. To find it out, type '/sbin/ifconfig' in a terminal windows on the server.

Second, to enable ftp server in RedHat go to (from the start menu) 'Server Settings' > 'Services' and enable 'vsftpd'. Then you need to restart 'xinetd' to make the changes take place.

Good luck!
Martin
 
  


Reply



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
Ftp(through web site access to ftp server) kelper Linux - Software 4 07-03-2015 05:14 PM
ftp server - Pure ftp - logs in OK but no files visible tp11235 Linux - Networking 2 08-30-2005 05:11 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
problem with ftp on mandrake 10.1 Official, ftp speeds system wide (anybody noticed?) equinox Mandriva 15 11-10-2004 02:07 PM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 08:23 AM

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

All times are GMT -5. The time now is 09:25 AM.

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
Open Source Consulting | Domain Registration