---
title: "linux之ssh连接时提示“The authenticity of host xx can’t be established”"
author: "小网客"
date: "2014-08-20T16:54:00Z"
tags: []
categories: ["操作系统"]
slug: "linux-ssh-the-authenticity-of-host-xx-can-t-be-established"
draft: false
lastmod: "2014-08-20T16:54:00Z"
id: 2106496
url: "https://snv.iteye.com/blog/2106496"
---

描述：

集群已经配置了ssh免密钥登陆，然后出现“The authenticity of host xx can’t be established”，输入yes后可以正常操作。

解决办法：

修改/etc/ssh/ssh\_config：

```
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
```

重启：

```
/etc/rc.d/init.d/sshd restart 
```