Skip to content

Instantly share code, notes, and snippets.

@atrauzzi
Created February 16, 2015 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atrauzzi/2a6cc2d898cc518a99b7 to your computer and use it in GitHub Desktop.
Save atrauzzi/2a6cc2d898cc518a99b7 to your computer and use it in GitHub Desktop.
Docker pre-run workaround for inheriting host's .ssh.
#!/bin/sh
echo "Configuring SSH Environment for `whoami`..."
rm -rf ~/.ssh
cp -r ~/.host-ssh ~/.ssh
chown -R root:root ~/.ssh
chmod -R 400 ~/.ssh
"$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment