Thanks everyone for your help... sorry on this tardy post as well. Thank you @vince for your offline help! c It seemed to be a combination of factors I was dealing with. Although I had followed some great online instructions on setting up rsync, none of them really discussed config files. A combination of getting that set up properly, plus not screwing up the permissions on the file (which of course I did) was what it took to get rsync working properly. I found out:
That the weewx user, being a special user, was still not getting permissions right when i ran tests using sudo -u... I ended up having to give weewx bash access, and then run su - weewx. Running keygen and copy with sudo -u was not writing keys properly... needed to be run under su - weewx or copy paste manually to the proper locations. The weewx user defaulted to /var/lib/weewx for its home directory. I had to make sure the permissions and ownership of the config file was for weewx (duh!). On Tuesday, May 13, 2025 at 3:47:48 PM UTC-7 Shane Burkhardt wrote: > I apologize if similar questions have been posted before, but I have not > found anything recent and am really banging my head against the wall. I > have rsync set-up but it still prompts for passwords for weewx or root > users, although the key pair works fine for me as user. I have run keygen > as weewx and as root. It looks like it saves root in the /root/.ssh > directory but it saves weewx in the /var/lib/weewx/.ssh directory. I have > copied the relevant public keys to the authorized keys file for the user on > the remote server I am connecting to. Still no luck. I saw very old > postings about a config file, but cannot figure out what that is or find > recent documentation of what that might be or where that should go. > > Any help would be much appreciated! > > I am running weewx on Ubuntu 24.02.02 VM installed via APT. It is using > the weewx user to run. My weather station is a WS5000-IP connected through > the GX1000 driver. The Weewx version is 5.10. > > Here is a snippet from the log: > May 13 15:00:23 asok weewxd[81319]: ERROR weeutil.rsyncupload: rsync > reported errors. Original command: ['rsync', '--archive', '--stats', '-e', > 'ssh', '/var/www/weewx> > May 13 15:00:23 asok weewxd[81319]: ERROR weeutil.rsyncupload: **** > Permission denied, please try again. > May 13 15:00:23 asok weewxd[81319]: ERROR weeutil.rsyncupload: **** > Permission denied, please try again. > May 13 15:00:23 asok weewxd[81319]: ERROR weeutil.rsyncupload: **** > xx...@my.host.com: Permission denied (publickey,password). > May 13 15:00:23 asok weewxd[81319]: ERROR weeutil.rsyncupload: **** rsync: > connection unexpectedly closed (0 bytes received so far) [sender] > May 13 15:00:23 asok weewxd[81319]: ERROR weeutil.rsyncupload: **** rsync > error: unexplained error (code 255) at io.c(232) [sender=3.2.7] > May 13 15:00:25 asok weewxd[81319]: DEBUG user.gw1000: Next update in 5 > seconds > > > > -- 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 visit https://groups.google.com/d/msgid/weewx-user/fb192abe-409d-4c94-971f-2bb837da68a7n%40googlegroups.com.