Yep. I did On 9 Aug 2022, at 18:32, 'John Kline' via weewx-user <weewx-user@googlegroups.com> wrote:
Did you restart weewx after changing weewx.conf? > On Aug 9, 2022, at 10:05 AM, Dan Jones <dan.rh.jo...@gmail.com> wrote: > > ssh stanza removed > > debug on 1 > > output still the same: > > DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', > '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', > 'www-data@123.123.123.123:/var/www/html/weather34/serverdata']] > > > Still ignoring ssh_options and still using IP address rather than host name. > > Surely ssh_options wouldn't be needed if it used the host name, and then > rsync would use .ssh/config with the correct host name configuration? > > > On Tuesday, August 9, 2022 at 5:09:51 PM UTC+1 jo...@johnkline.com wrote: >> Oh, I didn’t notice the SSH stanza, remove that line. ssh_options should be >> directly under RSYNC. >> >>> On Aug 9, 2022, at 9:01 AM, bell...@gmail.com <bell...@gmail.com> wrote: >>> >>> I don’t have a [[SSH]] stanza. Try removing that. >> >>> rich >>> >>> On Tuesday, 9 August 2022 at 11:53:57 UTC-4 dan.rh...@gmail.com wrote: >>>> Yep, correct, its the private key. >>>> >>>> But it looks like that whole ssh_options bit is being ignored. I can't see >>>> it in the logs when I tail them. >>>> >>>> On Tuesday, August 9, 2022 at 4:52:18 PM UTC+1 jo...@johnkline.com wrote: >>>>> -i should refer to a file that contains a private key. Is that the case? >>>>> >>>>>> On Aug 9, 2022, at 8:14 AM, Dan Jones <dan.rh...@gmail.com> wrote: >>>>>> >>>>>> My weewx.conf contains this: >>>>> >>>>>> >>>>>> [[RSYNC]] >>>>>> skin = Rsync >>>>>> HTML_ROOT = /var/www/html >>>>>> server = awsbox >>>>>> user = www-data >>>>>> path = /var/www/html >>>>>> delete = 0 >>>>>> ssh_options = -i /root/.ssh/aws >>>>>> [[SSH]] >>>>>> ssh_options = -i /root/.ssh/aws >>>>>> >>>>>> I have awsbox in my host file, pointing to the correct ip address >>>>>> >>>>>> in my .ssh/config I have: >>>>>> >>>>>> Host awsbox >>>>>> user www-data >>>>>> IdentityFile /root/.ssh/aws >>>>>> >>>>>> >>>>>> when I start the Weewx server, I get this error >>>>>> >>>>>> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', >>>>>> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', >>>>>> 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']] >>>>>> >>>>>> (IP changed for security) >>>>>> >>>>>> I can't see where the ip address is coming from. Is weewx or rsync >>>>>> converting it from the host file? >>>>>> >>>>>> Also, It seems to be ignoring the ssh_options parameter (though I could >>>>>> be using the wrong) But I hope that it isn't required, as I guess that >>>>>> rsync should be using the config in .ssh/config >>>>>> >>>>>> Any help would be greatly appreciated >>>>>> >>>>>> This is all on the latest version of Weewx >>>>>> >>>>> >>>>>> -- >>>>>> 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/e84797ff-e452-4099-bac1-e032a1f6d903n%40googlegroups.com. >>> >>> -- >>> 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/7a2e36e8-00fe-491e-acd7-01fca28be7a0n%40googlegroups.com. > > -- > 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/6ce83cde-458e-4058-917c-f8b6b10d44d6n%40googlegroups.com. -- You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/TGswy_m8yq0/unsubscribe. To unsubscribe from this group and all its topics, 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/AE34A74C-F383-4D53-9A98-DE0812E22BDD%40johnkline.com. -- 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/A0C0BA0C-1E64-412D-8787-5E1C419BCCE2%40gmail.com.