scp命令拷贝文件到imx6ull开发板出错

发布时间 2023-03-22 21:11:42作者: 吴燕青

开发环境:ubuntu22.04    OpenSSH_8.9p1 OpenSSL 3.0.2

根据网上资料描述是OpenSSH 7.0以后的版本不再支持ssh-dss(DSA)算法。

解决办法:在ubuntu22.04下修改/etc/ssh/ssh_config文件

Host *

HostkeyAlgorithms +ssh-rsa

PubkeyAcceptedKeyTypes +ssh-rsa

 

QT5使用rsync报错: no matching host key type found. Their offer: ssh-rsa

与此同时,QT5的rsync连接也不再报错,成功连接上了。

 

scp   文件   用户@ip地址:/路径名称

scp /home/wyqlinux/linux/code root@192.168.6.43:/home/wyqlinux