gliderlabs / ssh

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

feat: use a common Err for permission denied #188

Open guilhem opened 1 year ago

guilhem commented 1 year ago

This error can be used in ConnectionFailedCallback to know error with error.Is().

gustavosbarreto commented 1 year ago

@guilhem Could you please write a test case for these error type?