The SSHD public key authentication delegates the real authentication to a
PublickeyAuthenticator object which you need to implement and provide in
order for public key authentication to work.


https://github.com/apache/mina-sshd/blob/trunk/sshd-core/src/main/java/org/apache/sshd/server/PublickeyAuthenticator.java


On Wed, Nov 7, 2012 at 10:44 AM, FaXin Zhong <faxin.zh...@ericsson.com>wrote:

> So I think it just provide framework, instead of providing API for us to
> consume the public key directly etc... then tell us auth is ok or not.  We
> seems we need find another 3PP to do the public key authentication method
> and integrate it into mina framework?
>
> BRs/Faxin
>
> -----Original Message-----
> From: Guillaume Nodet [mailto:gno...@gmail.com]
> Sent: Wednesday, November 07, 2012 5:15 PM
> To: dev
> Subject: Re: MINA SSHD question
>
> You need to implement org.apache.sshd.server.UserAuth Look for example at
> the password authentication
>
>
> https://github.com/apache/mina-sshd/blob/trunk/sshd-core/src/main/java/org/apache/sshd/server/auth/UserAuthPassword.java
>
> You can configure the auth factories using
>    sshd.setUserAuthFactories(Arrays.<NamedFactory<UserAuth>>asList(new
> AuthPassword.Factory()));
>
>
> On Wed, Nov 7, 2012 at 10:02 AM, FaXin Zhong <faxin.zh...@ericsson.com
> >wrote:
>
> > Hi,
> >
> > Can you help me where I can use it (mina class)? Very appreciated
> > indeed, we just want to shorten the lead time because project is so
> urgent!
> >
> > BRs/Faxin
> >
> >
> > -----Original Message-----
> > From: Guillaume Nodet [mailto:gno...@gmail.com]
> > Sent: Wednesday, November 07, 2012 4:48 PM
> > To: dev
> > Subject: Re: MINA SSHD question
> >
> > Mina SSHD supports password, public key and gss authentication (plus
> > no authentication), but it's quite easy to add your own mechanism if
> > you need or to replace an existing one.
> >
> >
> > On Wed, Nov 7, 2012 at 7:57 AM, FaXin Zhong <faxin.zh...@ericsson.com
> > >wrote:
> >
> > > Hi Guillaume and all,
> > >
> > > We also need support standard SSH authentications like key store,
> > > SSH user/password (not application own authentication), does MINA
> support it?
> > > since our designer find MINA only support authentication framework,
> > > if you want to support ssh key, you need find another way, is that the
> case?
> > >
> > > Thanks.
> > >
> > > BRs/Faxin
> > >
> > >
> > > -----Original Message-----
> > > From: Guillaume Nodet [mailto:gno...@gmail.com]
> > > Sent: Friday, November 02, 2012 3:19 PM
> > > To: dev@mina.apache.org
> > > Subject: Re: MINA SSHD question
> > >
> > > You can create your own PasswordAuthenticator implementation that
> > > will delegate to your external system and use that one when
> > > configuring the sshd server.
> > >
> > > On Fri, Nov 2, 2012 at 6:46 AM, FaXin Zhong
> > > <faxin.zh...@ericsson.com
> > > >wrote:
> > >
> > > > Hi,
> > > >
> > > > Thanks for your proposal. Another question is: when we login into
> > > > our system, we need authenticate user towards the external
> > > > centralized server, e.g. Diameter. Currently it seems we must use
> > > > MINA internal ssh authentication mechanism, is there any way to
> > > > bypass
> > it?
> > > >
> > > > BRs/Faxin
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Guillaume Nodet [mailto:gno...@gmail.com]
> > > > Sent: Thursday, November 01, 2012 3:55 PM
> > > > To: dev@mina.apache.org
> > > > Subject: Re: MINA SSHD question
> > > >
> > > > The client is in control, you can't change anything on the server
> > > > side for that.
> > > > You need to modify putty and recompile it to suit your needs I
> suppose.
> > > >
> > > > On Thu, Nov 1, 2012 at 3:31 AM, FaXin Zhong
> > > > <faxin.zh...@ericsson.com
> > > > >wrote:
> > > >
> > > > > Hi Again,
> > > > >
> > > > > Either removing the login as and password or changing them to
> > > > > username and password are both OK for us.  We have realized
> > > > > letting customer input username and password on the screen, but
> > > > > the login as and password are still printed there, which is ugly
> > > > > for
> > us.
> > > > >
> > > > > BRs/Faxin
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: FaXin Zhong
> > > > > Sent: Thursday, November 01, 2012 10:25 AM
> > > > > To: dev@mina.apache.org
> > > > > Cc: Led Xu
> > > > > Subject: RE: MINA SSHD question
> > > > >
> > > > > Hi,
> > > > >
> > > > > We are using mina sshd server.  We create default ssh server
> > > > > instance, start it with my own port. Then we use putty to login
> > > > > our sshd server, the login as and password are printed in putty
> > > > > terminal. Now we need change the prompt to username and password.
> > > > > Is
> > > there anything we can do?
> > > > Appreciated.
> > > > >
> > > > > BRs/Faxin
> > > > >
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Guillaume Nodet [mailto:gno...@gmail.com]
> > > > > Sent: Wednesday, October 31, 2012 6:38 PM
> > > > > To: dev@mina.apache.org
> > > > > Subject: Re: MINA SSHD question
> > > > >
> > > > > Could you provide a bit more information ?
> > > > > Are you using mina sshd client, server or both and what methods
> > > > > are you calling ?
> > > > >
> > > > > On Wed, Oct 31, 2012 at 10:30 AM, FaXin Zhong
> > > > > <faxin.zh...@ericsson.com
> > > > > >wrote:
> > > > >
> > > > > > Hi Mina Experts,
> > > > > >
> > > > > > We are developing Java native SSHD inside our program with
> > > > > > MINA
> > 3PP.
> > > > > > Now we met problem that we can't change the login prompt,
> > > > > > currently the client will prompt: login as  and password, we
> > > > > > need change it to username and password prompt to align with
> > > > > > our other products. Then customer can get consistent
> > > > > > appearance from our
> > > products.
> > > > > >
> > > > > > Do you have some ways to do this adaptations?  Thanks a million.
> > > > > >
> > > > > > BRs/Faxin
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > ------------------------
> > > > > Guillaume Nodet
> > > > > ------------------------
> > > > > Blog: http://gnodet.blogspot.com/
> > > > > ------------------------
> > > > > FuseSource, Integration everywhere http://fusesource.com
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > ------------------------
> > > > Guillaume Nodet
> > > > ------------------------
> > > > Blog: http://gnodet.blogspot.com/
> > > > ------------------------
> > > > FuseSource, Integration everywhere http://fusesource.com
> > > >
> > >
> > >
> > >
> > > --
> > > ------------------------
> > > Guillaume Nodet
> > > ------------------------
> > > Blog: http://gnodet.blogspot.com/
> > > ------------------------
> > > FuseSource, Integration everywhere
> > > http://fusesource.com
> > >
> >
> >
> >
> > --
> > ------------------------
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> > ------------------------
> > FuseSource, Integration everywhere
> > http://fusesource.com
> >
>
>
>
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> FuseSource, Integration everywhere
> http://fusesource.com
>



-- 
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
FuseSource, Integration everywhere
http://fusesource.com

Reply via email to