Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply user "Denied login methods" immediately #1567

Open
secretfork opened this issue Mar 14, 2024 · 0 comments
Open

Apply user "Denied login methods" immediately #1567

secretfork opened this issue Mar 14, 2024 · 0 comments
Labels
suggestion Feature suggestion

Comments

@secretfork
Copy link

Is your feature request related to a problem? Please describe.

In openssh you may configure (for example) password auth and pubkey auth to be allowed globally. In a situation where a user is configured to only allow pubkey auth, he/she will be disconnected immediately when not supplying a pubkey.
When i try the eqvivalent in sftpgo, that is enabling pubkey auth and password auth globally, but denying a user anything but pubkey, i am expecting sftgo to behave roughly the same as openssh (that is, disconnect the user if it can't provide any valid login method immediately). Instead, sftgo asks for password the default number of times and then closes the connection. Of course, in the log i can see password isn't an allowed login method, but it still asks.

Describe the solution you'd like

I think i would rather prefer "Denied login methods" to be applied immediately, like in openssh.

Describe alternatives you've considered

No response

What are you using SFTPGo for?

Professional user, 1 person business

Additional context

No response

@secretfork secretfork added the suggestion Feature suggestion label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Feature suggestion
Projects
None yet
Development

No branches or pull requests

1 participant