I'm trying to set some dynamic environment variables for non-interactive ssh sessions, so I assume I can't use ~/.ssh/environment, because the values change from session to session. I've tried adding code to ~/.ssh/rc, but the environment variables don't stick. I can see them while the rc file is being processed, but they disappear after it finishes processing.
Is that configurable behavior? Is there some configuration I can change so that my ~/.ssh/rc file can export environment variables to non-interactive sessions? Or is there some other way to accomplish the same thing? My server version is OpenSSH_4.2p1 Debian-7ubuntu3, OpenSSL 0.9.8a 11 Oct 2005 Thanks, Paul
