Thanks for your reply. I didn't find BogusPublicKeyAuthenticator  in 0.4.0
version. I have implemented PublicKeyAuthenticator in java and passed that
object to jython. It worked fine.

wolvee

On Fri, Sep 24, 2010 at 3:17 AM, Guillaume Nodet <[email protected]> wrote:

> Not sure what hapens. I would put a breakpoint in ServerSession, line
> 357 (in trunk) which is the line that print the "Authentication
> failed" message and try to remote debug.
> The exact exception is purposely lost  for security reasons.
>
> You could also try with the BogusPublicKeyAuthenticator which will
> always return true too.
>
> On Thu, Sep 23, 2010 at 20:21, Wolvee <[email protected]> wrote:
> > Hi,
> >
> > I am trying to embed the SSHD server in my application for that I am
> using
> > jython. I have created server with SshServer.setUpDefaultServer() and
> > implemented PcublicKeyAuthenticator.
> >
> > class PKintImpl(PublicKeyAuthenticator):
> >    def authenticate(username, key, session):
> >         return True
> >
> > I have defined the "authenticate" function  by returning True.
> >
> > The server started successfully when I am trying to connect with cygwin
> > client I am getting message "Permission denied(pulickey)"
> > in server logs I am getting "Authentication Failed: null"  message I have
> > implemented the interface PasswordAuthenticator in the same manner. With
> the
> > PasswordAuthenticator I am successfully logged in.
> >
> > can somebody give me a right directions that how can I use implement
> > PublickeyAuthenticator in my app.
> >
> > Thanks,
> > Wolvee
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Reply via email to