LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-26-2008, 02:58 PM   #31
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63

And this outcome is different that when telnet was started by inetd, right ? Those attempts failed previous, by now at least you are getting to the password connection dialog, right?
 
Old 06-26-2008, 03:02 PM   #32
jhilton
LQ Newbie
 
Registered: Jun 2008
Posts: 29

Original Poster
Rep: Reputation: 15
Yes, previously when xinetd handled telnetd I was not getting the password, or even the login dialogue. Now with telnetd being ran from the command line I am getting the password and login prompts.
 
Old 06-26-2008, 04:40 PM   #33
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Good. This proves the issue is with an authentication or access-control layer such as SELINUX, tcpwrappers (hosts.allow,deny), or pam, or and IDS, or fail2ban, or ?

You're going to need to determine how each of these is configured, and which one is causing the connection to be closed summarily from the server end.
 
Old 06-26-2008, 09:15 PM   #34
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
FYI: you are aware of the Freshports for Solaris, where you can download a binary SSH package for your Solaris systems, right ? This is probabably a better choice overall.
 
Old 06-27-2008, 07:04 AM   #35
jhilton
LQ Newbie
 
Registered: Jun 2008
Posts: 29

Original Poster
Rep: Reputation: 15
Alright, thank you for all your help Mr. C. I'll take a look into all your suggestions and try to narrow it down, however I'm beginning to think it might be PAM.

I'll let my boss know about Freshports for Solaris, but however due to the nature of the network and the situation I doubt this idea will make it very far.
 
Old 03-30-2009, 10:37 AM   #36
Ryand833
Member
 
Registered: Jan 2004
Distribution: Fedora Core 4
Posts: 31

Rep: Reputation: 15
My Solution

I know this is an old post and I'm aware of the rules for reviving dead posts, but this issue appears to still be open and I have some information that might help.

When I had my telnetd running through xinetd, I confirmed that it was running by looking at the results of netstat -a.

I would attempt to make a connection from the same machine by doing:

Code:
telnet localhost
It immediately failed with the following:

Code:
[root@homeb /etc] # telnet localhost
Trying 127.0.0.1...
Connected to <hostname>.
Escape character is '^]'.
Connection closed by foreign host.
I checked my /var/log/messages and found the following:

Code:
Mar 30 10:26:44 home xinetd[7448]: FAIL: telnet address from=127.0.0.1
I noticed in my /etc/xinetd.conf file, the default setting for the only_from configuration was localhost. I changed it to read:

Code:
only_from     = localhost 127.0.0.1 192.168.0.0
I then restarted xinetd, and the connection finally made it through to login. I hope this helps somebody.
 
Old 05-20-2009, 03:57 PM   #37
jaary2000
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
if: netstat -an |grep 23 (ok=LISTEN)
check System/Administration/Server Settings/Services/On Demand Services
make sure On Demand Service, krb5-telnet selected and running
if not, check/save then restart xinetd service
 
Old 03-29-2016, 04:33 AM   #38
nanasupriatna0902
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Rep: Reputation: Disabled
connection closed by foreign host

Click image for larger version

Name:	eror.jpg
Views:	484
Size:	15.3 KB
ID:	21292

please help me what worng with my configuration
 
  


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
telnet - connection closed by foreign host rbumann Linux - General 11 01-05-2012 08:43 AM
SSH issue ""Server unexpectedly closed network connection" Errsta_Fonzarelli Linux - Software 12 05-24-2010 02:35 PM
Telnet error "Connection closed by foreign host" without prompting login. jhilton Linux - Newbie 1 06-25-2008 06:36 PM
outlook users having "your imap server has closed the connection" problems fedora_user Linux - Server 16 12-17-2007 04:43 AM
FTP problem "connection closed by remote host" with RHEL4 and Windows 2003 hooijack Linux - Enterprise 0 03-23-2006 09:29 PM

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

All times are GMT -5. The time now is 10:42 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