Skip to content

Instantly share code, notes, and snippets.

View oCroso's full-sized avatar

Timothy Adams oCroso

  • Raleigh, NC
View GitHub Profile
#!/bin/bash
SERVER_LIST=/path/to/serverlist
while read REMOTE_SERVER
do
ssh -o HostKeyAlgorithms=ssh-dss -i /home/user/.ssh/id_rsa -tp 1000 username@sshproxy-foo.bar.com $REMOTE_SERVER "exit"
done < $SERVER_LIST

Keybase proof

I hereby claim:

  • I am ocroso on github.
  • I am croso (https://keybase.io/croso) on keybase.
  • I have a public key ASB5yO0zwYr9RSd-ANFl9ctdsyEhtzzMcR24djc0gYZ4Iwo

To claim this, I am signing this object:

@oCroso
oCroso / group_replace.sh
Created April 30, 2018 17:52
finds paths, changes them
grep -r versions.yml | cut -d ":" -f 1 | xargs -I{} sed -i 's/aws-ansible\/group_vars\///' {}