Re: [go-nuts] x/crypto/ssh server question

2016-12-18 Thread Mark Adams
Hi Andrew! Take a quick look at the signature for ServerConfig.PublicKeyCallback : PublicKeyCallback func(conn ConnMetadata, key PublicKey) (*Permissions, > error) As you already know, PublicKeyCallback allows you to indicate whether or

[go-nuts] x/crypto/ssh server question

2016-12-18 Thread andrewchamberss
I am trying to get access to get public key that was used to authenticate an ssh connection (https://godoc.org/golang.org/x/crypto/ssh#ConnMetadata) inside the PublicKeyCallback while handling a channel request. I want to be able to accept the connection with any public key, but then control