Ssh Disable Host Key Checking

From NovaOrdis Knowledge Base
Revision as of 05:18, 11 January 2016 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

Internal


Overview

The ssh client verifies the identity of the host it connects to. If the remote host is not known to your system, the ssh client interactively asks you to accept the host:

The authenticity of host '[192.168.1.8]:22 ([192.168.1.8]:22)' can't be established.
ECDSA key fingerprint is 83:59:aa:33:10:98:48:f9:12:96:c4:e3:c2:75:50:b6.
Are you sure you want to continue connecting (yes/no)? yes

When run interactively this is usually not a problem, but the behavior could cause problems when ssh is run from a script, so there are situations when we want to inhibit this behavior, by disabling key checking.