Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
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

 Answers
3

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

[#41477] Wednesday, February 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ugeeport

Total Points: 181
Total Questions: 108
Total Answers: 99

Location: El Salvador
Member since Tue, Jun 29, 2021
3 Years ago
ugeeport questions
;