Re: [weewx-user] rsync fails with host key error in weewx, not from command line

2019-08-21 Thread vince
On Wednesday, August 21, 2019 at 6:59:56 AM UTC-7, Chris Richmond wrote:
>
> copy/paste of the exact rsync command also prompted to accept the hostkey 
> for
> filer2.csrhome.home. 
>

That's the issue.  The remote host key changed 'or' you generated a new 
~/.ssh/known_hosts file so it's prompting you for whether you trust the 
remote system is indeed the host it claims to be. 

-- 
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/4d85fe17-8f15-4705-8cbb-a6cb1777cdf1%40googlegroups.com.


Re: [weewx-user] rsync fails with host key error in weewx, not from command line

2019-08-21 Thread Chris Richmond
Yes.  weewx in this case.  Apparently, filer2 and filer2.csrhome.home end 
up with separate hostkeys
in known_hosts.  copy/paste of the exact rsync command also prompted to 
accept the hostkey for
filer2.csrhome.home.  Learn something new everyday.

I'll have to wait until later to see if weewx is successful next time 
(rsync 3x/day for now).

Chris

On Wednesday, August 21, 2019 at 6:50:21 AM UTC-7, Graham Eddy wrote:
>
> is it same user running ssh manually as weewx runs as?
> 
> *Graham Eddy*
>
> On 21 Aug 2019, at 11:29 pm, Chris Richmond  > wrote:
>
> Hi,
>I'm not new to ssh and all, but this one doesn't make sense. I'm 
> messing around with
> getting a set of hardware together for a move, and in the process ended up 
> with rsync
> errors because of host keys.  So... I removed the hostkey on the weewx end 
> and was
> able to ssh without a password to the NAS.  Still got the error, so 
> checked the reverse
> direction, which also had a problem, so corrected that.  Rechecked both 
> directions this
> morning (by hand) and no problems. *Still* weewx is failing rsync because 
> of host key
> errors.  Any more ideas.
>
> pivue:~> sudo grep rsync /var/log/syslog | tail
> Aug 21 06:25:16 pivue weewx[9927]: rsyncupload: [['rsync', '--archive', 
> '--stats', '-e ssh', '/home/weewx/public_html/', 
> 'weewxfiler2.csrhome.home:/volume1/web/vueweather']] reported errors: 
> Host key verification failed.. rsync: connection unexpectedly closed (0 
> bytes received so far) [sender]. rsync error: error in rsync protocol data 
> stream (code 12) at io.c(235) [sender=3.1.2]
> Aug 21 06:25:16 pivue weewx[9927]: rsyncupload: rsync executed in 0.30 
> seconds
> pivue:~> ssh filer2
>
> weewx@filer2:~$ ssh pivue.csrhome.home
> Linux pivue 4.19.42+ #1219 Tue May 14 21:16:38 BST 2019 armv6l
>
> Last login: Wed Aug 21 06:25:40 2019 from 192.168.2.250
> pivue:~> 
>
> Thx, Chris
>
> -- 
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/069127e6-f46b-4a3f-9a38-1d8c38439594%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/9a7fd643-e564-4d62-bd72-92e755fe66bf%40googlegroups.com.


Re: [weewx-user] rsync fails with host key error in weewx, not from command line

2019-08-21 Thread Graham Eddy
is it same user running ssh manually as weewx runs as?

Graham Eddy

> On 21 Aug 2019, at 11:29 pm, Chris Richmond  wrote:
> 
> Hi,
>I'm not new to ssh and all, but this one doesn't make sense. I'm messing 
> around with
> getting a set of hardware together for a move, and in the process ended up 
> with rsync
> errors because of host keys.  So... I removed the hostkey on the weewx end 
> and was
> able to ssh without a password to the NAS.  Still got the error, so checked 
> the reverse
> direction, which also had a problem, so corrected that.  Rechecked both 
> directions this
> morning (by hand) and no problems. *Still* weewx is failing rsync because of 
> host key
> errors.  Any more ideas.
> 
> pivue:~> sudo grep rsync /var/log/syslog | tail
> Aug 21 06:25:16 pivue weewx[9927]: rsyncupload: [['rsync', '--archive', 
> '--stats', '-e ssh', '/home/weewx/public_html/', 
> 'weewxfiler2.csrhome.home:/volume1/web/vueweather']] reported errors: 
> Host key verification failed.. rsync: connection unexpectedly closed (0 bytes 
> received so far) [sender]. rsync error: error in rsync protocol data stream 
> (code 12) at io.c(235) [sender=3.1.2]
> Aug 21 06:25:16 pivue weewx[9927]: rsyncupload: rsync executed in 0.30 seconds
> pivue:~> ssh filer2
> 
> weewx@filer2:~$ ssh pivue.csrhome.home
> Linux pivue 4.19.42+ #1219 Tue May 14 21:16:38 BST 2019 armv6l
> 
> Last login: Wed Aug 21 06:25:40 2019 from 192.168.2.250
> pivue:~> 
> 
> Thx, Chris
> 
> -- 
> 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/069127e6-f46b-4a3f-9a38-1d8c38439594%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/3AFF428E-61A1-4E91-81B9-DCF2AAEF4BF4%40gmail.com.


[weewx-user] rsync fails with host key error in weewx, not from command line

2019-08-21 Thread Chris Richmond
Hi,
   I'm not new to ssh and all, but this one doesn't make sense. I'm messing 
around with
getting a set of hardware together for a move, and in the process ended up 
with rsync
errors because of host keys.  So... I removed the hostkey on the weewx end 
and was
able to ssh without a password to the NAS.  Still got the error, so checked 
the reverse
direction, which also had a problem, so corrected that.  Rechecked both 
directions this
morning (by hand) and no problems. *Still* weewx is failing rsync because 
of host key
errors.  Any more ideas.

pivue:~> sudo grep rsync /var/log/syslog | tail
Aug 21 06:25:16 pivue weewx[9927]: rsyncupload: [['rsync', '--archive', 
'--stats', '-e ssh', '/home/weewx/public_html/', 
'weewxfiler2.csrhome.home:/volume1/web/vueweather']] reported errors: 
Host key verification failed.. rsync: connection unexpectedly closed (0 
bytes received so far) [sender]. rsync error: error in rsync protocol data 
stream (code 12) at io.c(235) [sender=3.1.2]
Aug 21 06:25:16 pivue weewx[9927]: rsyncupload: rsync executed in 0.30 
seconds
pivue:~> ssh filer2

weewx@filer2:~$ ssh pivue.csrhome.home
Linux pivue 4.19.42+ #1219 Tue May 14 21:16:38 BST 2019 armv6l

Last login: Wed Aug 21 06:25:40 2019 from 192.168.2.250
pivue:~> 

Thx, Chris

-- 
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/069127e6-f46b-4a3f-9a38-1d8c38439594%40googlegroups.com.