Created
October 29, 2020 18:26
-
-
Save gregjhogan/0ad52e6a4d41187e3ff91faa89f655d4 to your computer and use it in GitHub Desktop.
ssh-keyscan add hosts to 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
| # list of hostnames from file | |
| ssh-keyscan -H -f /<path>/<to>/<file> >> ~/.ssh/known_hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment