346
rated 0 times
[
346]
[
0]
/ answers: 1 / hits: 846856
/ 2 Years ago, tue, february 15, 2022, 5:33:58
I would like to disable strict host key checking in ssh
for Ubuntu 11.04. How to do it?
More From » ssh
I would like to disable strict host key checking in ssh
for Ubuntu 11.04. How to do it?
In your ~/.ssh/config
(if this file doesn't exist, just create it):
Host *
StrictHostKeyChecking no
This will turn it off for all hosts you connect to. You can replace the *
with a hostname pattern if you only want it to apply to some hosts.
Make sure the permissions on the file restrict access to yourself only:
sudo chmod 400 ~/.ssh/config