LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   using ftp (https://www.linuxquestions.org/questions/linux-newbie-8/using-ftp-133912/)

bahuguna_n 01-12-2004 03:59 AM

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

MartinN 01-12-2004 04:09 AM

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

bahuguna_n 01-13-2004 01:54 AM

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

MartinN 01-13-2004 02:18 AM

Hi!

:scratch: 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


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