Skip to content

Instantly share code, notes, and snippets.

@hoto
Created June 13, 2017 09:48
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 hoto/2e3521523602fa1c92c125ed86669ceb to your computer and use it in GitHub Desktop.
Save hoto/2e3521523602fa1c92c125ed86669ceb to your computer and use it in GitHub Desktop.
add forward agent to ssh config
for ip in $(fleetctl list-machines | cut -f 2); \
do \
ssh core@$ip \
bash -c "\
hostname && \
echo -e 'Host * \n ForwardAgent yes\n StrictHostKeyChecking no' > ~/.ssh/config && \
cat ~/.ssh/config"; \
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment