[go-nuts] Re: Is there functionality in golang.org/x/crypto/ssh to close a SSH connection server-side after N number of (password) tries?

2017-03-16 Thread ikkini
if config.KeyboardInteractiveCallback == nil { authErr = errors.New("ssh: keyboard-interactive auth not configubred") On Tuesday, March 14, 2017 at 11:34:32 AM UTC+1, ikkini wrote: > > > > On Sunday, February 26, 2017 at 6:47:34 AM UT

[go-nuts] Re: Is there functionality in golang.org/x/crypto/ssh to close a SSH connection server-side after N number of (password) tries?

2017-03-14 Thread ikkini
On Sunday, February 26, 2017 at 6:47:34 AM UTC+1, Tamás Gulácsi wrote: > > Provide a proper PasswordCallback to your server, as in the NewServerConn > example (https://godoc.org/golang.org/x/crypto/ssh#NewServerConn). > > Thats your function, you can program any algorithm you wish. > Thanks for

[go-nuts] Is there functionality in golang.org/x/crypto/ssh to close a SSH connection server-side after N number of (password) tries?

2017-02-25 Thread ikkini
Hey all, The client ssh library of golang.org/x/crypto/ssh has the maxTries variable in the RetryableAuthMethod: func RetryableAuthMethod(auth AuthMethod , maxTries int ) AuthMethod