解决ssh连接“Host key verification failed.”故障

在使用ssh连接服务器或者树莓派时,如果同一个IP的服务器重装或着重置过,则会出现Host key verification failed.故障,具体的错误信息如下
~ % ssh pi@192.168.0.107@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!Someone could be eavesdropping on you right now (man-in-the-middle attack)!It is also possible that a host key has just been changed.The fingerprint for the ECDSA key sent by the remote host isSHA256:1gVpTczj+J2LqzcIINUPaOfrOEBmLwWKYeIN84cyof8.Please contact your system administrator.Add correct host key in /Users/liaixing/.ssh/known_hosts to get rid of this message.Offending ECDSA key in /Users/liaixing/.ssh/known_hosts:1ECDSA host key for 192.168.0.107 has changed and you have requested strict checking.Host key verification failed.
而解决这个故障非常简单,只需要“ssh-keygen -R 你要访问的IP地址...阅读全文

Arduino使用DS1302和LCD1602制作电子钟

Arduino使用DS1302读取时间Arduino使用LCD1602液晶显示屏Arduino上使用DHT11传感器测量温度和湿度这三篇文章中,学习了DHT11、DS1302、LCD1602这三个传感器在Arduino上的使用。这篇文章,我们把这三个传感器综合起来,制作一个 Arduino 电子钟,通过LCD1602显示年月日、星期以及当前的时间,并可以显示当前的温度和湿度,以下是具体教程。

一、所需材料

Arduino 开发板一块

LCD1602屏幕 一块

DHT11温湿度传感器 一个

DS1302实时时钟模块一个

10K电位计一个

面包板一块

杜邦线若干

二、硬件连接

按照Arduino使用DS1302读取时间Arduino使用LCD1602液晶显示屏Arduino上使用DHT11传感器测量温度和湿度这三篇文章中的连接将Arduino与各模块连接起来。

三、程序开发

程序和所需的库可以在这里下载...

阅读全文