rsync:找不到匹配的主机密钥类型。他们的报价:ssh-dss

igo*_*igo 2 ssh rsync

使用 rsync 时出现此错误:

$ rsync -av server:file .
Unable to negotiate with 10.1.1.50 port 22: no matching host key type found. Their offer: ssh-dss
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.1]
Run Code Online (Sandbox Code Playgroud)

如何解决?

igo*_*igo 5

这是解决方案

$ rsync -av -e 'ssh -oHostKeyAlgorithms=+ssh-dss' server:file .
Run Code Online (Sandbox Code Playgroud)