4 ms·
....oh. I have used it a few times in the past for the classic task "move large file between two computers that are next to each other, how the hell do I do th
by shp0ngle 6y ago
....oh.
I have used it a few times in the past for the classic task "move large file between two computers that are next to each other, how the hell do I do this simply", but yeah, I can't see how that would be cost-effective for Firefox.
- deleted 6y ago[deleted]
- DavidSJ 6y agoBetween Unix-based machines on the same network my go-to is netcat. receiver$ nc -l 2000 > file sender$ nc receiver 2000 < file I usually check MD5 sums when I’m done.
- mkayokay 6y agoSCP. simply for the encrypted transmission, and most *nix machines have ssh
- tyingq 6y agoSsh with tar is handy for multiple files. Just be careful you're sending and receiving from the right place. Similar for rsync. (cd /right/place && tar -cf - patt*) | ssh remote '(cd /dest && tar -xvf -)' Of course, you can also use the compression flags with tar.
- DavidSJ 6y agoIt does require having an account on both machines though. I've used nc in situations where one machine is owned by someone else.
- AnonHP 6y agoLooks like you've got the receiver and sender commands reversed. The sender should use input redirection (< file) to read the file and the receiver should use output redirection (> file) to save the file.
- DavidSJ 6y agoLook again. :) That's how I have it.
- therein 6y agoCould easily introduce compression too: receiver$ nc -l 2000 | zcat > file sender$ nc receiver 2000 < $(cat file | gzip -f) But probably something like `rsync -azvP` will be much better in every way yet still quite portable and prevalent.
- Zenbit_UX 6y agoMagic wormhole is your friend
- op00to 6y agoDoes magic wormhole do firewall poking or just pass traffic through a 3rd party host? I couldn’t tell exactly what happens if the direct connection doesn’t work.
- bertman 6y ago>The wormhole send file mode shares the IP addresses of each client with the other (inside the encrypted message), and both clients first attempt to connect directly. If this fails, they fall back to using the transit relay. From https://magic-wormhole.readthedocs.io/en/latest/welcome.html#relays https://magic-wormhole.readthedocs.io/en/latest/welcome.html...
- jwilk 6y agoMagic Wormhole is a security disaster. Do not use if you have other options. 1) By default, authentication key has only 16 bits of entropy. (I wish I was making this up…) 2) There's no good UI to make the key stronger: you can either use, say, "--code-length 16", which makes the receiving code ridiculously long, or provide your own code with "--code", in which case it's visible to other local users via ps(1). 3) Between "wormhole send" and "wormhole receive" on the other side, anyone on the Internet can attempt to intercept the transfer. Conveniently, you can list all currently valid channel ids (nameplates). 4) If the interception succeeds, the attacker can immediately run "wormhole send" with the same code, so that the intended side wouldn't notice anything is off. 5) If the interception fails, the attacker still ruined the transfer. (DoS) All of this would be fixable, if not the maintainer's bizarre insistence on using weak crypto.
- minitech 6y ago> There's no good UI to make the key stronger: you can either use, say, "--code-length 16", which makes the receiving code ridiculously long So you want short, high-entropy keys in a restricted alphabet? That might be tough. Anyway, if it’s not brute-forceable and/because attacks are visible, it’s not really an issue.
- op00to 6y agoEasy ways to copy files between nearby computers: scp The python 3 equivalent of -mSimpleHTTPServer Samba Or maybe I’m missing something.
- Cyphase 6y agopython3 -m http.server
- MaxBarraclough 6y agoTo specify the port number explicitly: python3 -m http.server 8080 (Listening on port 80 may require more privileges.)
- vault 6y agoDefault is 8000
- catswithtail 6y agothe default one is port 8000 so permission should be no problem.
- otachack 6y agoCan also tack on an optional `-d directory_name` to be specific on where to serve from. It's my go to when developing my blog which consists of just HTML+CSS.
- Cyphase 6y ago(To answer the various questions, here's the --help. Also the docs are at https://docs.python.org/3/library/http.server.html#http-server-cli https://docs.python.org/3/library/http.server.html#http-serv...) --- $ python3.7 -m http.server --help usage: server.py [-h] [--cgi] [--bind ADDRESS] [--directory DIRECTORY] [port] positional arguments: port Specify alternate port [default: 8000] optional arguments: -h, --help show this help message and exit --cgi Run as CGI Server --bind ADDRESS, -b ADDRESS Specify alternate bind address [default: all interfaces] --directory DIRECTORY, -d DIRECTORY Specify alternative directory [default:current directory]