LinuxQuestions.org
Review your favorite Linux distribution.
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 12-09-2004, 09:02 AM   #1
helios123
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
Angry 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!
 
Old 12-09-2004, 09:14 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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.
 
Old 12-09-2004, 09:18 AM   #3
helios123
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
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?
 
Old 12-09-2004, 09:25 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can edit your /etc/inetd.conf and uncomment the respective lines. Also comment the services that you don't want to run.
 
Old 12-09-2004, 09:48 AM   #5
helios123
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
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?
 
Old 12-10-2004, 01:52 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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.
 
  


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 server - Pure ftp - logs in OK but no files visible tp11235 Linux - Networking 2 08-30-2005 05:11 AM
C -communicating with system("ftp"); using "program|ftp>>myfifo" probably hansschmucker Programming 1 03-23-2005 01:39 PM
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 06:22 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