Skip to content

Instantly share code, notes, and snippets.

@vkhatri
Created February 28, 2014 11:20
Show Gist options
  • Save vkhatri/9269405 to your computer and use it in GitHub Desktop.
Save vkhatri/9269405 to your computer and use it in GitHub Desktop.
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
@cshintov
Copy link

Can we use glob expansion for both source and destination like

VAR*

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment