(S)FTP/SCP to WEBDAV Bridge/Gateway?
I have an application that can only transfer it's files to an (S)FTP or SCP destination. But (suppose) I only have storage to which I can connect to via WEBDAV. Is there a way I could make this work?
Basically what I'm looking for is an (S)FTP/SCP to WEBDAV Bridge/Gateway, which I would then host on a LowEndBox, but I couldn't find anything (doable) myself so far...
Thanks!
Thanked by (1)tridinebandim
Tagged:
Comments
You could use Owncloud / Nextcloud for the WebDAV part and simply mount your storage either directly in the system or by using the external storage feature.
/EDIT/
Just to try to give a full answer: the above mentioned approach should work with any service proving WebDAV support, i.e. a simple Apache server or caddy server.
Maybe I'm missing something - I'm not familiar with WEBDAV -, but can't you mount your WEBDAV destination on your bridge VPS and connect via SFTP to the mounted folder?
Here is an example on how to mount using DavFS:
https://espace.cern.ch/winservices-help/DFS/WebDAV/Pages/UsingDavfsOnOlderLinux.aspx
Forget what I said above, I mixed it up and read is as the other way round...
That might work indeed Thank you!
rclone serve?
https://rclone.org/commands/rclone_serve/
Hmm, isn't that the other way around?
"rclone serve webdav implements a basic webdav server to serve the remote over HTTP via the webdav protocol. This can be viewed with a webdav client, through a web browser, or you can make a remote of type webdav to read and write it." https://rclone.org/commands/rclone_serve_webdav/
well, there is also rclone serve ftp and rclone serve sftp
You could do rclone serve sftp webdav: