4

I get this error when using 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]

How to fix it?

igo
  • 393
  • 4
  • 9
  • [SO duplicate](http://stackoverflow.com/questions/34208495/unable-to-negotiate-with-xx-xxx-xx-xx-no-matching-host-key-type-found-their-of/34209177#34209177) – Jakuje Jul 29 '16 at 10:55

1 Answers1

14

Here is the solution

$ rsync -av -e 'ssh -oHostKeyAlgorithms=+ssh-dss' server:file .
igo
  • 393
  • 4
  • 9