Linux:AutomaticallyAcceptHostFingerprintSSH

From Nigel's Wiki
Revision as of 22:36, 30 March 2017 by Nelgin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sometimes you want to log into a lot of hosts for the first time using a script but don't want to sit and accept all the host fingerprints.

 ssh -oStrictHostKeyChecking=no $h uptime

Add the -o StrictHostKeyChecking