{"id":8358,"date":"2019-01-19T16:28:10","date_gmt":"2019-01-19T16:28:10","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=8358"},"modified":"2019-03-09T01:53:27","modified_gmt":"2019-03-09T01:53:27","slug":"linux-today-ffsend-secure-file-share-from-the-command-line-firefox-send-client","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/19\/linux-today-ffsend-secure-file-share-from-the-command-line-firefox-send-client\/","title":{"rendered":"Linux Today &#8211; ffsend: Secure File Share From The Command Line (Firefox Send Client)"},"content":{"rendered":"<div class=\"post-header\">\n<div class=\"post-head\">\n<h1 class=\"post-title entry-title\">ffsend: Secure File Share From The Command Line (Firefox Send Client)<\/h1>\n<\/div>\n<div class=\"ads-posting\"><a name=\"ad-post\"><\/a><\/div>\n<\/div>\n<article>\n<div id=\"post-body-8468541568477630843\" class=\"post-body entry-content\">\n<div class=\"separator\"><a href=\"https:\/\/2.bp.blogspot.com\/-9FKm-bedz7w\/XD8QPxZnjhI\/AAAAAAAACJk\/29PQFeG0GFwfyVMbmlLz44yY4X8jzjQXgCLcBGAs\/s1600\/ffsend.png\"><img loading=\"lazy\" decoding=\"async\" title=\"ffsend command line Firefox Send client\" src=\"https:\/\/2.bp.blogspot.com\/-9FKm-bedz7w\/XD8QPxZnjhI\/AAAAAAAACJk\/29PQFeG0GFwfyVMbmlLz44yY4X8jzjQXgCLcBGAs\/s640\/ffsend.png\" alt=\"ffsend command line Firefox Send client\" width=\"640\" height=\"402\" border=\"0\" data-original-height=\"577\" data-original-width=\"917\" \/><\/a><\/div>\n<p><a href=\"https:\/\/github.com\/timvisee\/ffsend\" target=\"_blank\" rel=\"noopener\">ffsend<\/a>\u00a0is a command line Firefox Send client that&#8217;s currently in alpha, available for Linux, macOS and Windows (with only macOS and Linux binaries being available right now).<\/p>\n<p><b>With ffsend you can easily and securely share files from the command line, by making use of a\u00a0<a href=\"https:\/\/send.firefox.com\/\" target=\"_blank\" rel=\"noopener\">Send<\/a>, a Firefox test pilot project.<\/b><\/p>\n<p>Firefox Send is a file sharing experiment by Mozilla, which allows sending encrypted files to other users. &#8216;Send&#8217; can be\u00a0<a href=\"https:\/\/github.com\/mozilla\/send\" target=\"_blank\" rel=\"noopener\">installed<\/a>\u00a0on your own server, or you can use the Mozilla-hosted\u00a0<a href=\"http:\/\/send.firefox.com\/\">send.firefox.com<\/a>. The latter officially\u00a0<b>supports files up to 1 GB (but I could upload a 2GB file, as mentioned by the ffsend description)<\/b>, with\u00a0<b>each link expiring after a configurable download count (defaulting to 1 download) or 24 hours<\/b>, while also deleting all the files from the Send server. Read more about the\u00a0<a href=\"https:\/\/testpilot.firefox.com\/experiments\/send\" target=\"_blank\" rel=\"noopener\">Send Firefox Test Pilot<\/a>.<br \/>\n<a name=\"more\"><\/a><br \/>\nffsend can both upload and download files, while the remote host can use either ffsend or a simple web browser (that doesn&#8217;t have to be Firefox) to download the file.<\/p>\n<p>One could always use the\u00a0<span class=\"codeblock2\"><code>send.firefox.com<\/code><\/span>\u00a0web interface to upload and download files, but ffsend is intended for usage in scripts, without interaction. You can also use it for a quick file upload or download that doesn&#8217;t require opening a web browser.<\/p>\n<p>While<b>\u00a0ffsend uses client-side encryption<\/b>, ensuring that all files are encrypted before they are uploaded to the remote host, anyone with the link can download the file, so make sure you don&#8217;t share it with unauthorized people. That&#8217;s because the encryption secret, which is used to decrypt the file when downloading it, is included in the share URL.<\/p>\n<p><b>An extra level of protection is available &#8211; you can password protect the file<\/b>\u00a0by appending\u00a0<span class=\"codeblock2\"><code>--password<\/code><\/span>\u00a0when uploading a file using ffsend, or by setting the password after a file was uploaded, by using\u00a0<span class=\"codeblock2\"><code>ffsend password URL -p YOUR-PASSWORD<\/code><\/span>.<\/p>\n<p>ffsend features:<\/p>\n<ul>\n<li><b>Upload and download files and directories. For directories, ffsend will offer to archive the contents before uploading it.<\/b><\/li>\n<li><b>Can be used with send.firefox.com (this is the default) or with your own Send host<\/b><\/li>\n<li><b>Client side encryption<\/b><\/li>\n<li><b>Configurable download limits (allows the file to be downloaded between 1 and 20 times)<\/b><\/li>\n<li><b>Password protection<\/b><\/li>\n<li><b>Built-in archiving and extracting<\/b><\/li>\n<li><b>History tracking of files for easy management<\/b><\/li>\n<li><b>Inspect or delete shared files<\/b><\/li>\n<\/ul>\n<h2>Downloading and using ffsend<\/h2>\n<div><a href=\"https:\/\/github.com\/timvisee\/ffsend\/releases\" target=\"_blank\" rel=\"noopener\"><input class=\"install\" title=\"Download ffsend\" type=\"button\" value=\"Download ffsend\" \/><\/a><\/div>\n<p>While ffsend supports Linux, macOS and Windows, there are only macOS and Linux binaries for download right now. For Debian, Ubuntu, Linux Mint and other DEB-based Linux distributions, all you have to do is download and install the ffsend DEB package.<\/p>\n<p>On other Linux distributions, like Fedora, etc., you can download the generic binary. For 64bit (most users), download the ffsend binary ending in\u00a0<span class=\"codeblock2\"><code>-linux-x64.tar.gz<\/code><\/span>, extract it and install it somewhere in your\u00a0<span class=\"codeblock2\"><code>$PATH<\/code><\/span>, like\u00a0<span class=\"codeblock2\"><code>\/usr\/local\/bin<\/code><\/span>. Let&#8217;s say you&#8217;ve extracted the\u00a0<span class=\"codeblock2\"><code>.tar.gz<\/code><\/span>\u00a0in the current folder &#8211; in this case you can install the ffsend binary in\u00a0<span class=\"codeblock2\"><code>\/usr\/local\/bin<\/code><\/span>\u00a0using this command:<\/p>\n<pre class=\"cssterm\" title=\"Triple click to select a complete line!\"><code>sudo install ffsend \/usr\/local\/bin\/<\/code><\/pre>\n<p>Now you can upload a file like this:<\/p>\n<pre class=\"cssterm\" title=\"Triple click to select a complete line!\"><code>ffsend upload &lt;file.ext&gt;<\/code><\/pre>\n<p>Replace\u00a0<span class=\"codeblock2\"><code>file.ext<\/code><\/span>\u00a0with the file you want to upload.<\/p>\n<p>Want to download a file using ffsend? It&#8217;s just as easy:<\/p>\n<pre class=\"cssterm\" title=\"Triple click to select a complete line!\"><code>ffsend download &lt;URL&gt;<\/code><\/pre>\n<p>ffsend defaults to allowing 1 download per shared file, after which the file is deleted from the servers. To change this, use\u00a0<span class=\"codeblock2\"><code>--downloads NN<\/code><\/span>\u00a0(where\u00a0<span class=\"codeblock2\"><code>NN<\/code><\/span>\u00a0is a number from 1 to 20) when uploading a file:<\/p>\n<pre class=\"cssterm\" title=\"Triple click to select a complete line!\"><code>ffsend upload --downloads &lt;NN&gt; &lt;file.ext&gt;<\/code><\/pre>\n<p>You can also change the number of allowed downloads for already uploaded files. To be able to do this, you must know the URL of the file you want to modify. You can see all shared URLs using:<\/p>\n<pre class=\"cssterm\" title=\"Triple click to select a complete line!\"><code>ffsend history<\/code><\/pre>\n<p>Here&#8217;s how the output looks like:<\/p>\n<pre class=\"cssterm\" title=\"Triple click to select a complete line!\"><code>$ ffsend history\r\n#  LINK                                                                  EXPIRY  \r\n1  https:\/\/send.firefox.com\/download\/e84e67e23c\/#DYyvhlM9h1x1TAC9lJNUbw  23h59m  \r\n2  https:\/\/send.firefox.com\/download\/c7fa183352\/#j90VHhSrcpx_2Xlb-LGeXg  5h20m  \r\n3  https:\/\/send.firefox.com\/download\/65716755f4\/#wQaXbCgC2HOXvLrJVFc-Lw  4h58m  \r\n4  https:\/\/send.firefox.com\/download\/4fbd102676\/#LocbOt6LEs-sQFG6CKPeLw  4h54m  \r\n5  https:\/\/send.firefox.com\/download\/fbe2a90d5b\/#fJJ8NKsoJq0RRTRMSD3cVQ  3h6m<\/code><\/pre>\n<p>As you can see, command only lists the URLs and their expiry times, but not the file names. You can use the\u00a0<span class=\"codeblock2\"><code>info<\/code><\/span>\u00a0command for more detailed information on an URL, like this:<\/p>\n<pre class=\"cssterm\" title=\"Triple click to select a complete line!\"><code>ffsend info &lt;URL&gt;<\/code><\/pre>\n<p>Here&#8217;s with output:<\/p>\n<pre class=\"cssterm\" title=\"Triple click to select a complete line!\"><code>$ ffsend info https:\/\/send.firefox.com\/download\/4fbd102676\/#LocbOt6LEs-sQFG6CKPeLw\r\nID:         4fbd102676  \r\nName:       Fedora-Workstation-Live-x86_64-29-1.2.iso  \r\nSize:       1.80 GiB (1931477008 B)  \r\nMIME:       application\/octet-stream  \r\nDownloads:  0 of 1  \r\nExpiry:     4h53m (17613s)<\/code><\/pre>\n<p>Once you know the URL, you can change the allowed number of downloads until the link expires, by using this command:<\/p>\n<pre class=\"cssterm\" title=\"Triple click to select a complete line!\"><code>ffsend parameters --download-limit &lt;NN&gt; &lt;URL&gt;<\/code><\/pre>\n<p><span class=\"codeblock2\"><code>NN<\/code><\/span>\u00a0being the number of allowed downloads before the link expires (between 1 and 20), and\u00a0<span class=\"codeblock2\"><code>URL<\/code><\/span>\u00a0the Send URL.<\/p>\n<p>Fore more on ffsend, see its\u00a0<a href=\"https:\/\/github.com\/timvisee\/ffsend\/blob\/master\/README.md\" target=\"_blank\" rel=\"noopener\">README<\/a>\u00a0and check out\u00a0<span class=\"codeblock2\"><code>ffsend --help<\/code><\/span>.<\/div>\n<div><\/div>\n<\/article>\n<p><a href=\"http:\/\/www.linuxtoday.com\/security\/ffsend-secure-file-share-from-the-command-line-firefox-send-client-190116032510.html\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ffsend: Secure File Share From The Command Line (Firefox Send Client) ffsend\u00a0is a command line Firefox Send client that&#8217;s currently in alpha, available for Linux, macOS and Windows (with only macOS and Linux binaries being available right now). With ffsend you can easily and securely share files from the command line, by making use of &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/19\/linux-today-ffsend-secure-file-share-from-the-command-line-firefox-send-client\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Linux Today &#8211; ffsend: Secure File Share From The Command Line (Firefox Send Client)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8358","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=8358"}],"version-history":[{"count":2,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8358\/revisions"}],"predecessor-version":[{"id":10852,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8358\/revisions\/10852"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=8358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=8358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=8358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}