Could you please explain a bit more what's your exact problem is ?
If you implement your own PublickeyAuthenticator, you need to check wether
the received key is accepted or not.


2013/9/4 LSJ <hl1...@naver.com>

> Hi.
> I have been using MINA SSHD server.
> I want to be certified through Public key generated by the Linux
> Shell(using
> keygen).
> So I use "sshd.setPublickeyAuthenticator" method and
> "PublickeyAuthenticator" class.
> However, Public key used as parameter in "PublickeyAuthenticator" class
> recevied from user?
> --------------------------------------------
> public class DBPublicKeyAuth implements PublickeyAuthenticator {
>         @Override
>         public boolean authenticate(String arg0, *PublicKey arg1*,
> ServerSession
> arg2) {
> -----------------------------------------------
> The following two values are wrong.
> --------------------------------------------------------
> <The value generated by keygen>
> Ssh-rsa
>
> AAAAB3NzaC1yc2EAAAADAQABAAABAQClXHjwJv86qURq9L0wyfWyVlRSP8E+Bcr8yfeOKh928C4d67xPR0NoIhOSrhsZmRML4opan2ctCl7l11w1DwgsabBJgtQ7Y6ZWhLrS/W0M3a5efEjktlG71afQP6mtuFdeH140qpPxz6oB26mzCk2f+lajvXrlTNnx1Ap1vCxsueHy8ZRshMHX9k3VIgiabinAtyV7OOcFZjH45uvTmWmShrYzr0P95mevbWAb2RMeRZ2gpjS4Wh1a0u/TVgtJw7X3wbMa2CFjBQxqPGauH04kNo28vM8G3TXyYwJ6UDbPyIvkmYOrxkyckQ+SB0SHwGgZvF3XdcsT2uyPsmbCs5I1
> hl1tex@hl1tex-VirtualBox
>
> <The value printed in "PublickeyAuthenticator" class(in "authenticate"
> method)>
> RSA Public Key
>             modulus:
>
> a55c78f026ff3aa9446af4bd30c9f5b25654523fc13e05cafcc9f78e2a1f76f02e1debbc4f474368221392ae1b1999130be28a5a9f672d0a5ee5d75c350f082c69b04982d43b63a65684bad2fd6d0cddae5e7c48e4b651bbd5a7d03fa9adb8575e1f5e34aa93f1cfaa01dba9b30a4d9ffa56a3bd7ae54cd9f1d40a75bc2c6cb9e1f2f1946c84c1d7f64dd522089a6e29c0b7257b38e7056631f8e6ebd399699286b633af43fde667af6d601bd9131e459da0a634b85a1d5ad2efd3560b49c3b5f7c1b31ad82163050c6a3c66ae1f4e24368dbcbccf06dd35f263027a5036cfc88be49983abc64c9c910f92074487c06819bc5dd775cb13daec8fb266c2b39235
>     public exponent: 10001
>
> ----------------------------------------------------
>
> I do not know what is wrong.
> help me please~
>
>
>
> --
> View this message in context:
> http://apache-mina.10907.n7.nabble.com/Publickey-of-PublickeyAuthenticator-class-MINA-SSHD-tp39746.html
> Sent from the Apache MINA User Forum mailing list archive at Nabble.com.
>



-- 
-----------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gno...@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Reply via email to