Skip to content

Instantly share code, notes, and snippets.

@jtattermusch
Created February 17, 2016 17:55
Show Gist options
  • Save jtattermusch/8c67d4bd88832ddf11bf to your computer and use it in GitHub Desktop.
Save jtattermusch/8c67d4bd88832ddf11bf to your computer and use it in GitHub Desktop.
# After adding ForceCommand to sshd_config, this will make sure that
# user's env variables are properly loaded.
source /home/jenkins/win_ssh_uservars.sh
if [ "$SSH_ORIGINAL_COMMAND" ]
then
bash -c "$SSH_ORIGINAL_COMMAND"
fi
bash -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment