Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] rsync ssh error

On Tue, Jun 20, 2023 at 01:10:51PM +0900, Charles Muller wrote:
> For years, I've been running this script to download a comments file from my
> server to my local machine:
> rsync  -uvptl -e ssh <home>@
> $winD/docs/web/dicts/ddb/comments/
> The other day, I upgraded from Ubuntu 20.04 to 22.04.  Having done this,
> when I try to run this script, I get the following error message:
> Unable to negotiate with port 22: no matching host key type
> found. Their offer: ssh-rsa,ssh-dss
> rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
> The most common solution I found on the web was to add
> -oHostKeyAlgorithms=+ssh-rsa

I think you might want 


Which is what I use for an old machine we have at work which would give the
same message and was solved with that solution. 

You can even put it in $HOME/.ssh/config


This is what I use on a FreeBSD host to reach a FreeBSD guest, and it works
without problem.

Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver --recv-keys EB3467D6

Home | Main Index | Thread Index