Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Ssh removes the authentication host for the first time

Shulou Source: shulou.com Published: 2022-06-01 05:16:04 10月04日 Update

New hosts establish ssh connections all the time

The authenticity of host '222.185.x.x (222.185.x.x)' can't be established.RSA key fingerprint is 83:0c:88:96:a5:60:ba:6f:6b:6e:cb:16:16:c6:4c:23.Are you sure you want to continue connecting (yes/no)?

You need to enter yes to continue. Specify the parameter StrictHostKeyChecking value of no to solve the problem.

Ssh-o StrictHostKeyChecking=no-I RSA_key_file root@222.185.x.x

Solution once and for all, modify the configuration document

Modify the configuration of the / etc/ssh/ssh_config file, and this problem will not occur in the future

Add at the end:

StrictHostKeyChecking noUserKnownHostsFile / dev/null

Done. Done.

Tags: Configuration host once and for all parameters files documents methods problems input first time authentication Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei OPPO Reno Xiaomi Redmi macOS