Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2000 16:48:07 +0200 (EET)
From:      Evren Yurtesen <yurtesen@dc.ispro.net>
To:        Lowell Gilbert <lowell@world.std.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re:(2) interesting ssh problem!
Message-ID:  <Pine.BSF.4.10.10003151557400.88719-100000@c14pc21.dc.turkuamk.fi>
In-Reply-To: <rd67lf4e4zd.fsf@world.std.com>

next in thread | previous in thread | raw e-mail | index | archive | help
alright, here I tell, I have

 PermitRootLogin                 nopwd  
 AllowedAuthentications          publickey,password,hostbased

and I have the hostkey.pub file of the machine which will login in
/root/.ssh2/knownkeys

as the host name of the machine which will log in etc. (as described in
the man page)

Still I am not able to log in. The interesting thing is, first I set this
in 1 machine and I tried it by itself (by connecting to itself) then it
worked and then I tried it with other machines but it did not work. Then
with those other machines I tried to connect to itselves. It still did not
work. I uninstalled ssh and installed the same ssh from the same ports and
distfiles again to the other machines and it still did not work. But it
only works if I ONLY have hostbased in allowed authentications line.
Otherwise with password and publickey support the hostbased authentication
does not work.

The most interesting thing is even with only hostbased authentication I am
able to connect to the machine with password etc. by using securecrt from
windows! but I am not able to connect to the same machine by using ssh
client which came with the ssh distribution it says to me authentication
method disabled!

I really need some help!!! I am sure that I did the right configurations
on all the machines!

thanks!

Evren

On 15 Mar 2000, Lowell Gilbert wrote:

> yurtesen@dc.ispro.net (Evren Yurtesen) writes:
> 
> > hello, 
> > I have a problem with ssh!!!
> > I want to make host based authentication with public and private key
> > check. I did it on one machine (I could connect to the machine itself)
> > but I could not do it on any other machines! I do not know why! they do ot
> > even connect to themselves. ( I use root account to connect)
> > 
> > do you know any tricks? or anybody who wanted to do the same as I want?
> 
> I don't actually know what you want, I'm afraid.  In ssh terms "host
> based authentication" is just the first step; you still need to
> authenticate a user.
> 
> I have a couple of suggestions, though.  First of all, ssh may not
> allow root logins by default; there's a "PermitRootLogin no" option in
> my sshd_config file.  Secondly, there's a "-v" option for verbose
> output from the various ssh programs; that will almost certainly tell
> you *why* the login is failing.  Once you know why, of course, it will
> probably be trivial to fix it.
> 
> Be well.
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10003151557400.88719-100000>