gliderlabs / ssh

Easy SSH servers in Golang
https://godoc.org/github.com/gliderlabs/ssh
BSD 3-Clause "New" or "Revised" License
3.72k stars 452 forks source link

Timeout callback #179

Open aymanbagabas opened 2 years ago

aymanbagabas commented 2 years ago

Is there a way to call a function just before the connection times out and closes?

gustavosbarreto commented 2 years ago

@aymanbagabas If you're interested in some context of how I implemented this, please see: https://github.com/shellhub-io/shellhub/blob/master/agent/sshd/server.go#L197