schlagmichdoch / PairDrop

PairDrop: Transfer Files Cross-Platform. No Setup, No Signup.
https://pairdrop.net
GNU General Public License v3.0
4.68k stars 261 forks source link

[Enhancement] Support SSH or Linux command line #317

Open Adrelien opened 3 months ago

Adrelien commented 3 months ago

What problem is solved by the new feature Support SSH or Linux command line

Describe the feature easy way to transfer file using the command line to support headless machines

Drafts Screenshots of Draw.io graph or drawn sketch.

Additional context Since I can open the browser from anywhere and transfer the file I think it will be a nice addition if we can think of a way to like "XYZ Drop.com file.txt" to transfer the file. Maybe also add code to let us know where the file is going.

schlagmichdoch commented 3 months ago

What’s the use case of this? If you want to simply transfer a file from your machine to a server I‘d suggest to use scp. To transfer files between computers via the cli I like croc.

You can use PairDrop from the cli to share a file or folder via PairDrop in the browser. See https://github.com/schlagmichdoch/PairDrop/blob/a68cd75b715d62f46192ac2e3cef6000eca37114/docs/how-to.md#send-directly-via-command-line-interface