Created
September 2, 2016 20:17
-
-
Save Voronenko/a8f2a9a2aa7d3ca47febaadac078311a to your computer and use it in GitHub Desktop.
keyscans box by ip and adds to list of the known hosts
This file contains hidden or 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
echo keyscan jump box | |
ssh-keyscan -t rsa,dsa $JUMP_BOX 2>&1 | sort -u - ~/.ssh/known_hosts > ~/.ssh/tmp_hosts | |
mv ~/.ssh/tmp_hosts ~/.ssh/known_hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment