Networking

Hardware

Software

Consultation

 

Disable Local Domain SSH Strict Checking

 
 

Suppose you want to bypass key checking for a particular subnet (192.168.0.0/24).

Add the following lines to the beginning of the SSH configuration file.

Host 192.168.0.*
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null


Note that the configuration file should have a line like Host * followed by one or more parameter-value pairs.

Host *means that it will match any host.

Essentially, the parameters following Host * are the general defaults.

Because the first matched value for each SSH parameter is used, you want to add the host-specific or subnet-specific parameters to the beginning of the file.