Wednesday, July 8, 2020

SSH: Disable Strict Host Key Checking


When you first time ssh to a server, it always to ask your confirm to continue like below:
$ ssh 10.128.15.213The authenticity of host '10.128.15.213 (10.128.15.213)' can't be established.ECDSA key fingerprint is SHA256:jMk2r6vp9wb/QUf2abx7D7F5DMnhKaqA7+bpcAEtIRg.ECDSA key fingerprint is MD5:b9:05:d6:bd:97:80:dd:0f:a0:cb:10:34:1f:3e:19:10.Are you sure you want to continue connecting (yes/no)?
Add below entries into ~/.ssh/config to stop the message:
Host *
    StrictHostKeyChecking no

No comments:

Post a Comment