SendEnv How To?

  • the2bears

    the2bears - 2010-04-07


    Has anyone used JSch with SendEnv functionality?  I have a situation where I need to do this.  I have been able to see the debug messages from SSHD when I use an OpenSSH client, something along the lines of:

    debug1: server_input_channel_req: channel 1 request env reply 0
    debug1: session_by_channel: session 0 channel 1
    debug1: session_input_channel_req: session 0 req env
    debug2: Setting env 0: …

    This would appear to be an extension to Channel, similar to the others.  Anyone done this?  Anyone with a link to the proper bytes to send and I'll implement it myself? :)

    I'm off to do some more googling, but any advice is appreciated.


  • the2bears

    the2bears - 2010-04-13

    If anyone's interested I've figured this out, send me a note if you'd like.  Anyone had any luck contacting the author?  I'd like to contribute this back.



Log in to post a comment.