I would like to send some initial data when creating a new ssh session. Is there any reason why NewSession doesn't allow callers to do this? Session doesn't export the underlying channel either, so opening a channel and directly initializing the Session isn't an option either.
func (c *Client) NewSession() (*Session, error) { ch, in, err := c.OpenChannel("session", nil) if err != nil { return nil, er } return newSession(ch, in) } -- https://cs.opensource.google/go/x/crypto/+/5352b090:ssh/client.go;l=133-139 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/bffe6f27-65cc-44d6-9e21-22240ae6ffbbn%40googlegroups.com.