Instantly share code, notes, and snippets.

Embed
What would you like to do?
Forward ENV Variables over SSH to Remote Host
## Client:
# Environment Variables to Forward to Remote Host
# .ssh/config
SendEnv VARIABLE1
SendEnv VARIABLE2
..
SendEnv VARIABLEn
## Server:
# Configure Environment Variables Acceptance on Remote OpenSSH Server
# /etc/ssh/sshd_config
AcceptEnv VARIABLE1 VARIABLE2 .. VARIABLEn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment