📜  ssh 忽略主机密钥验证 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:08.799000             🧑  作者: Mango

代码示例1
In your ~/.ssh/config (if this file doesn't exist, just create it):

Host *
    StrictHostKeyChecking no
    
Rather than adding it to your ~/.ssh/config file for all Host *, it would be a safer to specify a particular host.
You can also pass a parameter on the command-line like this:

ssh -o StrictHostKeyChecking=no yourHardenedHost.com