Originally Posted by
demonenero84
You are absolutely right, setting up an ssh server is easy, fast and secure (I copy my keys and then disable password access), after that all you have to do is mount the remote file system with sshfs. Samba share is also quite easy to set up and very useful for android devices or VMs with old operating systems (like windows xp)
My question was a personal curiosity, I am running a few tests on my lan so it is not really a problem.
Plain FTP can be fast, but with any CPU made the last 15 yrs, sftp, sshfs, NFS, are very fast. The only time I use Samba is for MS-Windows. Ghost Commander on Android supports sftp or there are tools like nextcloud, wormhole, rsync to move files to-from android.
For testing network performance, I start with iperf3, then move to scp, NFS, sshfs, and if I really want the fastest, then I'll use netcat. It is also possible to run a 1-line web server using almost any scripting language if you want to provide short-term access to all the files below a directory level. Some examples.
Code:
Python 3.x
$ python3 -m http.server 8000
Ruby 1.9.2+
$ ruby -run -ehttpd . -p8000
PHP (>= 5.4)
$ php -S 127.0.0.1:8000
busybox httpd
$ busybox httpd -f -p 8000
I tend to use the python one, even though I'm a perl guy. But
Code:
$ plackup -MPlack::App::Directory -e
'Plack::App::Directory->new(root=>".");' -p 8000
just doesn't feel as easy. I already use plack for those stuff, so it is already installed on my perl dev systems.
Originally Posted by
demonenero84
Just an off topic question. Is it safe to access my ftp server outside my lan if I use a vpn installed on my modem/router (wireguard) ?
thanks a lot for the reply
If you are using wireguard, then almost any protocol is fine, thought plain FTP wouldn't be the way I did it. I'd just use sftp:// URLs and come in over ssh outside the wireguard tunnel, if I were on a Linux laptop. Pretty much all Linux file managers support sftp:// URLs (or some weird replacement that does the same thing using sftp).
In short, getting out of the plain FTP mindset will simplify your life and keep you from accidentally doing something with poor security.
Bookmarks