SFTP Server
-
SFTP is actually really awesome for file transfers. Highly secure. Nothing is easier or more universal. Can be mounted like a drive, or used like old FTP. Works easily from CLI or GUI.
-
I have many instances of Nextcloud running but have never used SFTP with it.
-
@danp said in SFTP Server:
@scottalanmiller said in SFTP Server:
@danp said in SFTP Server:
Doesn't NextCloud support SFTP? Would that work for you?
Why all the extra effort?
IDK. Thought it might be an option since he indicated a desire to use a different method.
Would still be SFTP though.
-
@brandon220 said in SFTP Server:
I have many instances of Nextcloud running but have never used SFTP with it.
Not sure how you would. What port would it be on?
-
@scottalanmiller No Idea. Always use 443 from browser. Don't use webdav either.
-
Are you sure your not confusing SFTP with FTPS ?
Cause if your setting SFTP, it comes by default with SSH server in any modern Linux distro out of the box, and you should use WinSCP with it as client for Windows.
As for transferring files, within the Linux OS you choose, you can simply rsync (similar to robocopy on windows) between servers the files using this syntax:
rsync -avuz /var/www/example.com/index.html [email protected]:/var/www/example.com/
This will copy the index file from the current linux os to another linux os who has the following IP
108.175.12.239a = archive mode
v = increase verbose
u = skip files that are newer on the receiver
z = compress file data during the transferAnd you can schedule this in linux cron
And SFTP is amazing, so as WebDAV. But i would prefer SFTP all the time.
-
@emad-r They are asking for SFTP which will definitely be easy. We already use WinSCP and have no issues. Just second guessing myself and looking for some input from others.
-
WinSCP seems good the times I have used it. Use a custom port though for more security
-
@jmoore said in SFTP Server:
WinSCP seems good the times I have used it. Use a custom port though for more security
That is not how that works.
You can use an uncommon port simply to keep fewer bots from hitting your logs, but there is no security there.
-
@brandon220 I would restrict access to the server to only the two entities using the firewall.
-
@brandon220 said in SFTP Server:
@emad-r They are asking for SFTP which will definitely be easy. We already use WinSCP and have no issues. Just second guessing myself and looking for some input from others.
What are you using for your SFTP server today?
-
@aaronstuder That is the plan once it is up and running.
-
@strongbad The existing one is hosted by a service company. It also gets used daily. This will be a new one.
-
@brandon220 said in SFTP Server:
ng Fedora Server with FileZilla but am open to other ideas. I haven't set up an FTP server in a while so I'm here for some guidance and advice.
Your setup should be fine, just avoid the Filezilla Client adds on installation.
-
@dbeato Not using FileZilla. I forgot they already know how to use WinSCP and I get no complaints from the users.
-
@brandon220 Nice, that's better
-
Keep it simple, just use straight Fedora for the server. That part is easy. And any client that they are already using.
-
@danp said in SFTP Server:
Doesn't NextCloud support SFTP? Would that work for you?
No it uses WebDav protocol, but you can login to the linux machine that is hosting it via SSH