You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Michael Brodskiy <mi...@gmail.com> on 2018/07/30 17:00:10 UTC
SSH Lib configuration
Hello,
My name is Michael Brodskiy. I have question regarding library
configuration. Could you please help me with lib configuration.
I have to implement custom SSH server with following functionality:
1. authorization by public key that will be fetch from DB. Each time
when server receives connection first i have to fetch this public key from
DB by the user.
2. Ability to forward port
Thank you in advance!
Best regards,
Michael
Re: SSH Lib configuration
Posted by Guillaume Nodet <gn...@apache.org>.
Le lun. 30 juil. 2018 à 20:51, Michael Brodskiy <mi...@gmail.com>
a écrit :
> Hello,
>
> My name is Michael Brodskiy. I have question regarding library
> configuration. Could you please help me with lib configuration.
> I have to implement custom SSH server with following functionality:
>
> 1. authorization by public key that will be fetch from DB. Each time
> when server receives connection first i have to fetch this public key
> from
> DB by the user.
>
You just need to implement your own org.apache.sshd.server.auth.pubkey.
PublickeyAuthenticator and register it on the ServerBuilder using the
publickeyAuthenticator() method.
> 2. Ability to forward port
>
See https://github.com/apache/mina-sshd#port-forwarding
>
> Thank you in advance!
>
> Best regards,
> Michael
>
--
------------------------
Guillaume Nodet