func (s *Server) handleEnv(ch ssh.Channel, req *ssh.Request, ctx *ctx) error {
	var e sshutils.EnvReqParams
	if err := ssh.Unmarshal(req.Payload, &e); err != nil {
		ctx.Error(err)
		return trace.Wrap(err, "failed to parse env request")
	}
	ctx.setEnv(e.Name, e.Value)
	return nil
}
// handleEnv accepts environment variables sent by the client and stores them
// in connection context
handleEnv accepts environment variables sent by the client and stores them
in connection context
// handleEnv accepts environment variables sent by the client and stores them // in connection context
func (s *Server) handleEnv(ch ssh.Channel, req *ssh.Request, ctx *ctx) error {
	var e sshutils.EnvReqParams
	if err := ssh.Unmarshal(req.Payload, &e); err != nil {
		ctx.Error(err)
		return trace.Wrap(err, "failed to parse env request")
	}
	ctx.setEnv(e.Name, e.Value)
	return nil
}
func ( s * Server ) handleEnv ( ch ssh . Channel , req * ssh . Request , ctx * ctx ) error { var e sshutils . EnvReqParams if err := ssh . Unmarshal ( req . Payload , & e ) ; err != nil { ctx . Error ( err ) return trace . Wrap ( err , " " ) } ctx . setEnv ( e . Name , e . Value ) return nil }
handleEnv accepts environment variables sent by the client and stores them
in connection context
handleEnv accepts environment variables sent by the client and stores them in connection context