Last active
July 1, 2020 17:15
-
-
Save mcherb/85b2369a948d3118ef4f2df9198b7e4f to your computer and use it in GitHub Desktop.
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
#!/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