For some years, I have been running weewx with no major problems, on a 
raspberry.

Now I want to upload to an extra server (also raspberry), using rsync.
However, I get

rsyncupload: [['rsync', '--archive', '--stats', '--delete', '-e ssh', 
'/home/jjk/weewx/public_html/', '[email protected]:/media/hytte']] reported 
errors: Permission denied, please try again.. Permission denied 
(publickey,password).. rsync: connection unexpectedly closed (0 bytes 
received so far) [sender]. rsync error: error in rsync protocol data stream 
(code 12) at io.c(605) [sender=3.0.9]

I understand there is a problem with my publickey or password.
However, when I from the same raspberry use sftp or ssh or even try rsync 
with the same settings, I have no problem uploading the files - it is only 
when I try using weewx, I get the problem. Of course I can upload the files 
with sftp - but it would be more elegant from inside weewx.

The relevant Rsync section of weewx.conf:

[[RSYNC]]
        # rsync'ing to a webserver is treated as just another report
        skin = Rsync
        
        # If you wish to use rsync, you must configure passwordless ssh 
using
        # public/private key authentication from the user account that weewx
        # runs as to the user on the remote machine where the files
        # will be copied.
        #
        # The following three lines determine where files will be sent.
        server = 185.127.50.88
        path = /media/hytte
        user = jjk
        
        # Rsync can be configured to remove files from the remote server if
        # they don't exist under HTML_ROOT locally. USE WITH CAUTION: if you
        # make a mistake in the remote path, you could could unintentionally
        # cause unrelated files to be deleted. Set to 1 to enable remote 
file
        # deletion, zero to allow files to accumulate remotely.
        delete = 1

?

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to