Created
February 28, 2014 11:20
-
-
Save vkhatri/9269405 to your computer and use it in GitHub Desktop.
Forward ENV Variables over SSH to Remote Host
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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
Can we use glob expansion for both source and destination like
VAR*
?