emberstack / docker-sftp

SFTP Server for Docker
MIT License
194 stars 51 forks source link

Require both publickey and password #140

Closed fintechestenberg closed 1 year ago

fintechestenberg commented 1 year ago

I am trying to require a login to need both key and password to login, but it seems that when publickeys is set it ignores the password.

my user config is like this


        {
            "Username": "test",
            "Password": "1234",
            "PublicKeys": [
                "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMmM0HScbma4pxSq+9Pfg8MitDwKPza6pA5tqBCTAcAF test@test.com
            ]
        }

Is there any special flag or similar that needs to be set to enable this?

1ARdotNO commented 1 year ago

I made a fix myself, https://github.com/emberstack/docker-sftp/pull/141

niteshamin commented 1 year ago

Any chance we can get this approved and merged into a new build. Got a use case which can benefit from it.

winromulus commented 1 year ago

@niteshamin should be available soon (building)