Skip to content

Instantly share code, notes, and snippets.

@oCroso
Created May 26, 2017 12:17
Show Gist options
  • Save oCroso/ded435c2c7026db3a785ea1979db0be5 to your computer and use it in GitHub Desktop.
Save oCroso/ded435c2c7026db3a785ea1979db0be5 to your computer and use it in GitHub Desktop.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment