SFTP, SCP, Secure Webdav: which is the most suitable?
SFTP is fine, it's easy to setup and there aren't any huge holes in it at the moment. It's available on pretty much every system (including android 2.1 and higher with the right FTP client).
SFTP is pretty common now, so it's also less likely to be blocked.
Related videos on Youtube
Xavier Maillard
Updated on September 17, 2022Comments
-
Xavier Maillard over 1 year
currently, I am hosting a webdav share setup in order to store files I need anywhere I am. It is available via HTTPS.
Things are that I do not need all the HTTP machinery -i.e. my nginx http server is only there for this webdav folder.
I am not sure I made the best choice. My requirements on the client side are:
- secured transfers
- mountable as a network drive at work with 'near realtime sync'
- usable for any OS I could use (including my mobile (android))
At first, I chose webdav since it would pass through my work proxy (which refuses all that is not on HTTP/S (port 80 or 443)).
Today, I am not satisfied with the setup and even if nginx memory footprint is pretty small, its webdav support is not really "clean" and full.
What would you recommend between SFTP, SCP and the current webdav solution ? I think SFTP is the closest solution but I still have to find out how to pass through my proxy ;) SCP seems quite limited as I read about it (only file transfers if I read right).
Cheers
-
Julian almost 14 yearsHow much data are you talking about? An explanation why dropbox or skydrive is not enough would help.
-
user1686 almost 14 yearsFYI, both SFTP and SCP go over the same port, as they both use the SSH protocol as a transport. (You may be confusing it with FTPS, which is regular FTP over SSL.)
-
Xavier Maillard almost 14 years@grawity Hum SCP is not SFTP. I am not confusing at all. See en.wikipedia.org/wiki/SSH_file_transfer_protocol. @nifle I want my data at home and not let someone manage it for me.
-
user1686 almost 14 years@Xavier: Then run SSH on a "HTTP port".
-
Daisetsu almost 14 yearsSFTP can be run on any port you want, it will be able to do this because the FTP client and server determine the type of connection by the protocol, not the port type. Now if your ISP won't allow you to run any services exposed to the world on HTTP ports than that's going to be a problem for any service you want to expose. I just wanted to let you know that there is no reason why you couldn't run SFTP over port 80.
-
Xavier Maillard almost 14 yearsand @grawity yeah. This is what I did :D
-
t.mikael.d over 11 yearsDid you notice any problems with performance? Specifically since SFTP is very slow with many files, while webdav is a lot faster on that regard. Or maybe you only handle few files?
-
bertieb over 8 yearsHi lukaz, welcome to Super User. Can you expand your answer a bit to describe what OwnCloud is and why it meets the requirements laid out in the question? Link-only answers are discouraged.