Scp 命令提示 no ECDSA host key is known forx.x.x.x 问题

73 阅读1分钟

1. 问题

在使用SCP向其他设备传送文件时,打印如下错误:

No ECDSA host key is known for x.x.x.x and you have requested strict checking.
Host key verification failed.
lost connection

2. 解决方法

scp -o stricthostkeychecking=no