SSH

73 views
Skip to first unread message

Jens-Jørgen Kjærgaard

unread,
Feb 21, 2023, 11:45:35 AM2/21/23
to weewx-user
I have given rsync a try, suggested by tk as a much better option than ftp.
However, I get

Feb 21 17:31:22 raspberrypi weewx[3741] DEBUG weewx.reportengine: Running report 'RSYNC'
Feb 21 17:31:22 raspberrypi weewx[3741] DEBUG weewx.reportengine: Found configuration file /home/jjk/weewx/skins/Rsync/skin.conf for report 'RSYNC'
Feb 21 17:31:22 raspberrypi weewx[3741] DEBUG weewx.reportengine: Cannot read localization file /home/jjk/weewx/skins/Rsync/lang/en.conf for report 'RSYNC': Config file not found: "/home/jjk/weewx/skins/Rsync/lang/en.conf".
Feb 21 17:31:22 raspberrypi weewx[3741] DEBUG weewx.reportengine: **** Using defaults instead.
Feb 21 17:31:22 raspberrypi weewx[3741] DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', '--stats', '-e', 'ssh', '/home/jjk/weewx/public_html/', 'jens...@linux83.unoeuro.com:/public_html/hytte']]
Feb 21 17:31:22 raspberrypi weewx[3741] ERROR weeutil.rsyncupload: rsync reported errors. Original command: ['rsync', '--archive', '--stats', '-e', 'ssh', '/home/jjk/weewx/public_html/', 'jens...@linux83.unoeuro.com:/public_html/hytte']
Feb 21 17:31:22 raspberrypi weewx[3741] ERROR weeutil.rsyncupload: **** Permission denied, please try again.
Feb 21 17:31:22 raspberrypi weewx[3741] ERROR weeutil.rsyncupload: **** Permission denied, please try again.
Feb 21 17:31:22 raspberrypi weewx[3741] ERROR weeutil.rsyncupload: **** jens...@linux83.unoeuro.com: Permission denied (password).
Feb 21 17:31:22 raspberrypi weewx[3741] ERROR weeutil.rsyncupload: **** rsync: connection unexpectedly closed (0 bytes received so far) [sender]
Feb 21 17:31:22 raspberrypi weewx[3741] ERROR weeutil.rsyncupload: **** rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]
Feb 21 17:31:23 raspberrypi weewx[3741] DEBUG weewx.restx: StationRegistry: Failed upload attempt 3: b'FAIL: Server is undergoing maintenance\n'
Feb 21 17:31:23 raspberrypi weewx[3741] ERROR weewx.restx: StationRegistry: Failed to publish record 2023-02-21 17:30:00 CET (1676997000): Failed upload after 3 tries

Apparently, something is wrong with my permissions - I have the private and public keys in the right place for passwordless ssh - but nevertheless get: Permission denied (password).

Glenn McKechnie

unread,
Feb 25, 2023, 2:06:43 AM2/25/23
to weewx...@googlegroups.com
Okay, they are in the right place.

Do they have the correct permissions? If those are screwed up it will
ask for a password regardless of any public key.

What happens when you - from your terminal - enter the following...

ssh jens...@linux83.unoeuro.com

If it asks for a password then it's not setup correctly. Try...

ssh -v jens...@linux83.unoeuro.com

That will return some info (add more 'v' s for more info) . Any
obvious errors in the output that returns?
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/8bcb1036-9f07-40ed-901c-da560b571de8n%40googlegroups.com.
>


--


Cheers
Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie
Reply all
Reply to author
Forward
0 new messages