Skip to content

Conversation

@zeripath
Copy link
Contributor

@zeripath zeripath commented Dec 12, 2020

This PR adds a new callback function to allow for the final error during attempted authentication to be logged by the containing program.

Without this it's impossible to handle or add add fail2ban configuration to software using gliderlabs ssh.

Signed-off-by: Andrew Thornton art27@cantab.net

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath
Copy link
Contributor Author

Is there any chance of getting this in?

@belak
Copy link
Collaborator

belak commented Jun 28, 2021

Thanks for submitting this - I also appreciate the ping. I've been really busy the last few months and this fell off my radar.

LGTM!

@belak belak merged commit 4204f8c into gliderlabs:master Jun 28, 2021
@zeripath zeripath deleted the connection-failed-callback branch June 28, 2021 08:16
@zeripath
Copy link
Contributor Author

No problem - I'd forgotten about it - now I have to make the changes in Gitea!

zeripath added a commit to zeripath/gitea that referenced this pull request Jun 28, 2021
Following the merging of gliderlabs/ssh#143 we
can now report connections to the ssh server that have failed before
public key exchange has completed using the standard fail2ban message.

This PR updates Gliderlabs SSH and adds a callback that will provide this
logging.

Signed-off-by: Andrew Thornton <art27@cantab.net>
techknowlogick pushed a commit to go-gitea/gitea that referenced this pull request Jun 28, 2021
)

* Upgrade Gliderlabs SSH to 0.3.3 and add FailedConnectionCallback

Following the merging of gliderlabs/ssh#143 we
can now report connections to the ssh server that have failed before
public key exchange has completed using the standard fail2ban message.

This PR updates Gliderlabs SSH and adds a callback that will provide this
logging.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* move the callback to its own function to make the logging appear little nicer

Signed-off-by: Andrew Thornton <art27@cantab.net>
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this pull request Aug 10, 2021
…gitea#16278)

* Upgrade Gliderlabs SSH to 0.3.3 and add FailedConnectionCallback

Following the merging of gliderlabs/ssh#143 we
can now report connections to the ssh server that have failed before
public key exchange has completed using the standard fail2ban message.

This PR updates Gliderlabs SSH and adds a callback that will provide this
logging.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* move the callback to its own function to make the logging appear little nicer

Signed-off-by: Andrew Thornton <art27@cantab.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants