Thanks for the reply. I've just copied the correct key across to the 
server, but I'm still getting the same error. When I try to ssh to the 
server using simply "ssh username@remote-server" I also get that error, and 
I have to add "-o HostKeyAlgorithms=ssh-dss" to be able to ssh in 
successfully. Could this be the issue with the Rsync as well? Is there a 
way to add the same option to the Rsync command?

On Wednesday, 23 August 2023 at 07:42:26 UTC+1 Invisible Man wrote:

> Your Rsync works through SSH, and the first line of the logs shows that it 
> expects to be able to log in using a host key, but it can't find your host 
> key.
> So, you need to copy the SSH key of the host you are Rsyncing from to the 
> host you are Rsyncing to, in its .ssh/authorized_keys.
>
> I presume that this happened when you changed your OS. The SSH key has 
> obviously changed, and currently in .ssh/authorized_keys you probably have 
> the old key.
>
> Be sure to copy the correct user's key depending on who's running weewx on 
> your system.
> On Tuesday, August 22, 2023 at 7:34:09 PM UTC+2 Jon B wrote:
>
>> I recently updated the operating system on which I'm running weewx to 
>> Ubuntu 22.04 and now Rsync to my web server is no longer working. I'm 
>> pretty sure it's because the version of ssh in Ubuntu 22.04 is newer than 
>> the previous version and I've tried various fixes but haven't been able to 
>> solve it.
>>
>> The error in the logs is:
>>
>> Unable to negotiate with ***.***.**.** port 22: no matching host key type 
>> found. Their offer: ssh-rsa,ssh-dss
>> ERROR weeutil.rsyncupload: **** rsync: connection unexpectedly closed (0 
>> bytes received so far) [sender]
>> ERROR weeutil.rsyncupload: **** rsync error: unexplained error (code 255) 
>> at io.c(231) [sender=3.2.7]
>>
>> From searching online I've tried adding various things to different ssh 
>> config files but none has worked. I'm sure it must be a fairly simple 
>> solution though - can anyone point me in the right direction?
>>
>> Thanks!
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f779d699-ace3-4759-95dd-4bef5a5de2f2n%40googlegroups.com.

Reply via email to