It is currently 06 Sep 2010, 08:39

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: how to set up sshd? [SOLVED]
PostPosted: 26 Feb 2010, 11:24 
Offline

Joined: 27 Oct 2009, 10:10
Posts: 24
Location: France -Quimper
Hello,

I'd like to access to my 9114-275 through an ssh connexion, but I obtain the message :
Code:
bash-3.1$ ssh 192.168.1.201
ssh_exchange_identification: Connection closed by remote host

I tried to configure /etc/hosts.allow files in vain. And finaly the /etc/hosts.deny without any more success.
Here my files :

Code:
#
#/etc/hosts.allow
#

# <services>: <ip>
sshd1: 192.168.xxx.xxx

#End of file


and

Code:
#
#/etc/hosts.deny
#

ALL: ALL: DENY
sshd1: 192.168.xxx.xxx
#End of file


After each changes I restart the sshd deamon with a kill -HUP <pid> command.

What I doing wrong?


Last edited by fredmj on 26 Feb 2010, 11:32, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: how to set up sshd?
PostPosted: 26 Feb 2010, 11:31 
Offline

Joined: 27 Oct 2009, 10:10
Posts: 24
Location: France -Quimper
Oops sorry for that another newbie question.
I denied all by default and let unchanged the /etc/hosts.deny file
Code:
$ cat /etc/hosts.deny 
#
# /etc/hosts.deny
#

ALL: ALL: DENY
# End of file


and allow like that my client ssh in the /etc/hosts.allow

Code:
$ cat /etc/hosts.allow
#
# /etc/hosts.allow
#

# <service>: <ip>
sshd: 192.168.1.110 : allow

# End of file


Note : I'd like find a head file like this
#
# /etc/hosts.allow
#

# <service>: <ip> :<allow>

But well, the man pages are my friends...


Top
 Profile  
 
 Post subject: Re: how to set up sshd? [SOLVED]
PostPosted: 27 Feb 2010, 14:23 
Offline
User avatar

Joined: 17 Dec 2005, 14:31
Posts: 244
Location: Italy
well, you solved it.

It's a quite common situation:
http://www.cruxppc.org/Main/Handbook2-6#Configuration1


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron