On Sat, at 3:27 AM Sean Danischevsky wrote: It would be great if the SFTP option allowed for key authentication, the underlying code does allow for this: This works fine but is always lagging what is happening on the camera, and doesn't really fix the issue outlined above. This uses rsync over sssh and private/public keys authentication. so I have a cron job which hourly rsyncs the media to the remote server. 07:08:24: ERROR: failed to upload file "/data/media/sda1//07-07-05.mp4" with service sftp: (79, '')įile "/usr/lib/python2.7/site-packages/motioneye/uploadservices.py", line 1103, in upload_media_fileįile "/usr/lib/python2.7/site-packages/motioneye/uploadservices.py", line 103, in upload_fileįile "/usr/lib/python2.7/site-packages/motioneye/uploadservices.py", line 992, in upload_dataįile "/usr/lib/python2.7/site-packages/motioneye/uploadservices.py", line 952, in curl_perform_filetransfer 07:08:24: ERROR: sftp: cURL upload failed on s: While some media gets uploaded fine, on many others I get errors: Thanks to the help of posters above, I got sftp working. This issue could really be called 'SFTP' problems, as that was the original posters problem and mine. Reply to this email directly, view it on GitHub You are receiving this because you are subscribed to this thread. Mkdir: can't create directory '/root/.ssh': Read-only file system Continue (Yes/No) (yes)įailed to add the host to the list of known hosts password:Ĭonnected to the problem is I ~]# mkdir /root/.ssh The authenticity of host '' (x.x.x.x) can't be established.ĮCDSA key fingerprint is xxxxxggggg. I can SSH into the pi and run SFTP with write ~]# sftp not create directory '/root/.ssh'. But the Raspberry Pi running MotionEye OS won't I canĬonnect from another machine with the same credentials (via the command I'm having trouble on MotionEye OS uploading media files via SFTP. Oldest files once the storage hits a given percentage of the storage space Or better, if the issue is storage space, have an option to delete the On Thu, at 9:08 AM Sean Danischevsky wrote: I haven't tried this with sftp but it works fine when testing with ssh in a terminal and for rsync. You can view the generated public key with something like:Īnd then copy it to the appropriate directory of your network box, if non-Windows, maybe: Essentially you need to generate a pair of ssh keys on your Raspberry Pi, something like: There are a vast number of web pages explaining passwordless ssh. I use rsync on my network storage (Linux, Synology) to grab motionEyeOS images with cron. In which case, something over passwordless ssh will do the trick. Or are you trying to do this unattended, under a script or cronjob or Windows equivalent. FTP does have the benefit of being simple but its not exactly secure across non-private networks and you might be better using scp, sftp or whatever with FileZilla or maybe FreeFileSync which looks good. Is this uploading files to be done whilst you are present ? Presumably yes, hence your use of FileZilla, which I imagine can store passwords like most utilities of that sort.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |