On Mon, Mar 11, 2019 at 9:16 AM <jake6...@gmail.com> wrote: > Perhaps someone will magically understand your problem. >
Yes please, source.. or link to the source. Do tell us what: $ go env returns. I suspect that. your source is conservative and does not pass env variables to the remote shell as that is a difficult to manage feature with security issues. https://tools.ietf.org/html/rfc4254 Another layer that is likely to prune the process environment is locally i.e. "go run" invokes a chain of commands any of which can be a risk and would prove to be problematic as the the parent child chain would have to be very defensive in what it allows. The best guess I have is that the server for ssh has a special configuration flag "PermitUserEnvironment". $ grep PermitUserEnvironment /etc/ssh/* /etc/ssh/sshd_config:#PermitUserEnvironment no <-----default is NO. The environnmet of process on remote systems is a tangle of risks. -- T o m M i t c h e l l -- 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. For more options, visit https://groups.google.com/d/optout.