Update: Private/public key authentication was added to TinySftpServer since version 1.0.2. You can get it from https://www.rebex.net/tiny-sftp-server/. To enable it just fill the
userPublicKeyDir config value.
Here is a link to the beta of Tiny SFTP server that supports public
key user authentication.
It allows you setting the public key for the user via the optional config section (within the RebexTinySftpServer.exe.config file):
So just save the public key somewhere to your disk where the Tiny server app can read it and then point to the right direction in the config file. Should be easy, hope you’ll make it. So to sum it up - server has the public key and the SFTP client uses his corresponding private key to authenticate to the server. We plan to release a new version of Rebex Tiny Sftp server that will enable to configure this easily. To receive notification when it is released, just subscribe to our Rebex labs newsletter.
If the public key is not specified, then just pure user + password authentication will be enabled in Rebex Tiny sftp server (this is also the default).
If you do specify the public key, then the server will allow the SFTP client to authenticate by his private key.
However, it will also accept the password (so it is up to the client to decide).
Please give it a try and let us know whether it works to your expectations.
If you do not have a private/public key pair generated yet, let us know we have an app for that too.