How to enable private key authentication mode in Rebex Tiny SFTP Server?

+1 vote
asked Aug 11, 2016 by alexander.junior (180 points)
retagged Aug 11, 2016 by Tomas Knopp

I am using Rebex Tiny SFTP Server. I am able to connect on passing username and password. Also working fine by passing username,password and privatekey.

client.Login(username,password);
client.Login(username,password,privateKey);

But issue occurs on passing username and private key.
client.Login(username,privateKey);
No suitable authentication method is supported. Supported methods: 'password,keyboard-interactive'.

1 Answer

0 votes
answered Aug 11, 2016 by Tomas Knopp (58,580 points)
edited Sep 19, 2016 by Tomas Knopp

Update: Private/public key authentication was released in version 1.0.2. You can download it from http://labs.rebex.net/tiny-sftp-server and give it a try.

A beta version of Rebex Tiny SFTP server with support for private/public key authentication is already available. Please download it and give it a try.
It will be included in one of the next Tiny Sftp Server releases.

You will need to put your user's public keys into the directory specified by the 'userPublicKeyDir' value in the config file.

 <add key="userPublicKeyDir" value="userKeys"/> 

...