Thanks. I believe you are correct.The weewx user is root so weewx rsync  
with non-root  user keysis not going to work. Learn something new every 
day..

On Thursday, January 13, 2022 at 12:11:47 PM UTC-5 tops...@gmail.com wrote:

> Is WeeWx running as the same user as your user? Error looks to me like the 
> weewx user hasn't done the key sharing to allow password-less rsync over 
> ssh.
>
> On Thursday, January 13, 2022 at 10:58:19 AM UTC-5 gszla...@gmail.com 
> wrote:
>
>> WeeWX version 4.5.1 - debian install
>> MQTT
>> GW1000 API
>> also running neowx-material skin
>> --
>> rsync works perfectly on the command line but it does not work in weewx.
>> The web host uses port 2222 for SSH.
>> I've tried all types of things with ~.ssh/config but whether or not I 
>> even use the config file or not, I get the exact same error:
>>
>> 2022-01-12 2:39 P.M.        weewx.service        weewx[19782] ERROR 
>> weeutil.rsyncupload: [['rsync', '--archive', '--stats', '-e ssh -p 2222', 
>> '/var/www/html/weewx/belchertown/', 
>> 'remote_user@mydomainca:public_html/glenns/belchertown']] reported errors: 
>> Host key verification failed.. rsync: connection unexpectedly closed (0 
>> bytes received so far) [sender]. rsync error: unexplained error (code 255) 
>> at io.c(235) [sender=3.1.3]
>>
>> I did see Chri's's Jan 2 thread about his port problem for rsync but in 
>> my case adding port = 2222 in the RSYNC section appears to work as I see -p 
>> 2222 in the error message above.
>>
>> note: if you add a "/" slash in front of public_html for the target 
>> directory on the remote host, rsync does not work on the command line.
>>
>> note: I don't "git" git - could not see a way to download Tom's patched 
>> rsyncupload.py - so i just did a cut and paste of his code with notepad++ 
>> and duplicated the permissions. Hopefully it worked..at least I get the 
>> same error with the patched file! I have attached a copy of the patched  
>> file..just in case i didn't get the right one. I also have attached a 
>> debug=1 file  along with weewx.conf.
>>
>> Any help with this rsync problem would be greatly appreciated!
>>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b0b13cb7-bdfd-4b0d-a163-f823bd82f24bn%40googlegroups.com.

Reply via email to