Try passing command "source .login;" before your command.
On Monday, March 11, 2019 at 7:00:23 AM UTC, Subramanian Sridharan wrote: > > Hi guys! > > I would like to know how to keep the environment variables over SSH using > Go. > > I find that several environment variables are missing when I SSH using Go. > > For instance, the proxy environment variables are not present when I SSH > using Go, but they're present when I SSH using an actual terminal. > > > Thanks in advance! > -- 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.