LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   JDS can't ftp into system but can ftp out (https://www.linuxquestions.org/questions/linux-newbie-8/jds-cant-ftp-into-system-but-can-ftp-out-264448/)

helios123 12-09-2004 09:02 AM

JDS can't ftp into system but can ftp out
 
Hi

I installed JDS on a laptop smoothly. I can ftp to other systems but cannot ftp or telnet into my laptop.

I get the following:

ftp: connect: Connection refused

telnet: Unable to connect to remote host: Connection refused

I looked in /etc/services:

ftp-data 20/tcp # File Transfer [Default Data]
ftp-data 20/udp # File Transfer [Default Data]
ftp 21/tcp # File Transfer [Control]
fsp 21/udp # official is File Transfer, ftp use no udp
ssh 22/tcp # SSH Remote Login Protocol
ssh 22/udp # SSH Remote Login Protocol
telnet 23/tcp # Telnet
telnet 23/udp # Telnet

which looks to me like the ports are open???

Any help would be appreciated!

bathory 12-09-2004 09:14 AM

To see if the ports are open run:
Code:

netstat -tan or
lsof|grep LISTEN

The /etc/services just describes the services and the้r corresponding ports.

helios123 12-09-2004 09:18 AM

Now what?
 
Thanks,

netstat -tan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:515 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:681 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:9010 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:27000 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 ::1:9010 :::* LISTEN
tcp 0 0 :::38900 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 ::1:9010 ::1:32869 ESTABLISHED
tcp 0 0 129.154.48.96:33475 192.18.108.66:993 ESTABLISHED
tcp 0 0 ::1:9010 ::1:32772 ESTABLISHED
tcp 0 0 129.154.48.96:33516 129.148.9.42:8080 TIME_WAIT
tcp 0 0 ::1:33565 ::1:9010 ESTABLISHED
tcp 0 0 ::1:32795 ::1:9010 ESTABLISHED
tcp 0 0 ::1:32772 ::1:9010 ESTABLISHED
tcp 0 0 ::1:32869 ::1:9010 ESTABLISHED
tcp 0 0 ::1:9010 ::1:32795 ESTABLISHED
tcp 0 0 ::1:9010 ::1:33565 ESTABLISHED

Don't see them listed here. How do I turn them on?

bathory 12-09-2004 09:25 AM

You can edit your /etc/inetd.conf and uncomment the respective lines. Also comment the services that you don't want to run.

helios123 12-09-2004 09:48 AM

OK did that and telnet now works but ftp does not although I do get further. The connection is made and then lost:

ftp 131.154.48.96
Connected to 131.154.48.96.
421 Service not available, remote server has closed connection

I installed gftp and believe ftp is a standard part of the install (JDS/Suse)

Any thoughts?

bathory 12-10-2004 01:52 AM

I've seen this error when you open the ftp service through /etc/inet.conf, but either you don't have an ftp daemon installed, or it's not configured correctly.


All times are GMT -5. The time now is 01:56 AM.