Skip to content

Instantly share code, notes, and snippets.

@mcherb
Last active July 1, 2020 17:15
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 mcherb/85b2369a948d3118ef4f2df9198b7e4f to your computer and use it in GitHub Desktop.
Save mcherb/85b2369a948d3118ef4f2df9198b7e4f to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
service ssh start
su anotherUser -c 'eval $(ssh-agent) && ssh-add /keys/id_rsa'
#keep docker runing
while true; do
echo "Press [CTRL+C] to stop.."
sleep 10
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment