Code: Select all
scp localfilename username@otherRapsberryIpAddress:remotefilename Code: Select all
scp localfilename username@otherRapsberryIpAddress:remotefilename sudo
Looks like you added the keys for user 'pi'. If you run scp from the command line without 'sudo' then all is fine.
YES!!! Thats it!DirkS wrote: ↑Sun Nov 04, 2018 9:28 pmLooks like you added the keys for user 'pi'. If you run scp from the command line without 'sudo' then all is fine.
If you use it from the 'root' crontab then scp will also run as root.
You have to make sure that the keys are created for the correct user (pi and/or root)