LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-18-2015, 05:24 AM   #1
wowy
Member
 
Registered: Mar 2015
Location: France
Distribution: Ubuntu 14.04
Posts: 61

Rep: Reputation: Disabled
Telnet "connection closed by foreign host" issue and ftpd not reachable


Hi,

I am currently working on a sbc6000x board (armv5) with busybox on it and would like the run a Telnet daemon and ftp daemon on it.

My inetd.conf file is :
Code:
#<service_name>    <sock_type>    <proto>    <flags> <user>     <server_path>     <args> 

ftp            stream        tcp        nowait    root    /usr/sbin/ftpd -wS /etc
telnet            stream        tcp        nowait    root    /usr/sbin/telnetd
I checked, the symlink are in /usr/sbin.

hosts.deny is empty and there is no firewall on each machine.

When trying to Telnet to my target i have the issue :

Code:
:~# telnet 10.2.29.201 23
Trying 10.2.29.201...
Connected to 10.2.29.201.
Escape character is '^]'.
Connection closed by foreign host.
Same thing when trying "Telnet localhost 23" on the board.

When trying to connect to the ftp server i have the message :

Code:
504 Gateway Timeout
Gateway timeout expired while waiting for server response.
Does anyone have an idea on what i could do ?

Kind regards
 
Old 03-18-2015, 02:38 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,882

Rep: Reputation: 162Reputation: 162
What's output of "netstat -l"? Is telnet and ftp port listened?
 
Old 03-19-2015, 12:57 PM   #3
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
make sure these services are running
potmap
xinetd
telnetd
any way telnet is very insecure
use ssh
And what ftp service u r using?
 
  


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
Telnet "Connection closed by foreign host" jhilton Linux - Networking 37 03-29-2016 04:33 AM
Telnet localhost 465, pop3s, imaps. connection closed by foreign host tuanhqit Linux - Newbie 4 08-12-2014 05:49 PM
Telnet: Connection closed by a foreign host DBrenchley Linux - Server 3 05-16-2014 12:49 AM
telnet - connection closed by foreign host rbumann Linux - General 11 01-05-2012 08:43 AM
Telnet error "Connection closed by foreign host" without prompting login. jhilton Linux - Newbie 1 06-25-2008 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:37 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
Open Source Consulting | Domain Registration