LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-16-2005, 02:18 AM   #1
sumargin
LQ Newbie
 
Registered: Nov 2005
Posts: 15

Rep: Reputation: 0
a question about ssh service


my host ip is 192.168.21.3
when I ssh 192.168.21.3,there are some error message below
ssh_exchange_identification: Connection closed by remote host
I have started xinetd./etc/rc.d/xinetd start
I have started sshd. /etc/rc.d/sshd start
That's ok
The context of /etc/xinetd.conf below:
#
# /etc/xinetd.conf
#

service sshd
{
type =INTERNAL
socket_type =stream
protoco =tcp
port =22
only_from =192.168.21.3
wait =no
}

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

includedir /etc/xinetd.d

So that's all above
But I don't know the reason of the ssh question
 
Old 12-16-2005, 02:47 AM   #2
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 296

Rep: Reputation: 31
This may sound silly, but have you checked TCP Wrappers /etc/hosts.allow and /etc/hosts.deny ? You could be denying sshd through the wrappers ?
 
Old 12-16-2005, 03:34 AM   #3
seagley
LQ Newbie
 
Registered: Nov 2005
Location: China
Distribution: Redhat,SuSE.FreeBSD
Posts: 13

Rep: Reputation: 1
The sshd can be run without xinetd, I guess it is the sshd_config problem or the firewall problem.

1. Execute "netstat -na" to chekc whether the 22 port is open and listening.
2. Execute "iptables -L" to check the firewall settings.

I'm not sure whether the xinetd setting impacts this, try adding "disable=yes" into the xinetd sshd section if necessary.
 
Old 12-16-2005, 03:55 AM   #4
sumargin
LQ Newbie
 
Registered: Nov 2005
Posts: 15

Original Poster
Rep: Reputation: 0
yes,I have fix up my question
The reason of this problem is I have never change the file /etc/host.deny
 
Old 12-16-2005, 04:03 AM   #5
sumargin
LQ Newbie
 
Registered: Nov 2005
Posts: 15

Original Poster
Rep: Reputation: 0
thanks james.farrow
 
  


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
Question about /etc/service bladehaze Linux - Newbie 7 09-15-2005 08:11 PM
Can't SSH until restart service Da Puff Mandriva 4 09-14-2005 08:51 PM
ssh-agent/ssh-add question mega Slackware 2 01-26-2005 03:09 AM
A question about service config 3887182 Slackware 4 01-24-2005 03:18 AM
small question, service hanxuerui Linux - Newbie 5 04-04-2003 04:24 PM

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

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