Live data from Hacker News

Curl.io – Share files from your terminal or ssh

curl.io

51–60 of 68 posts

Re: Curl.io – Share files from your terminal or ssh

#51
post #47

Earlier quoted context omitted.

Agreed. The web UI reacted almost instantly when I hit enter in the terminal. I'd want an interface to destroy the file immediately then fallback to the 4 hour auto-delete. Also some serious details about the author and security before I'd actually consider sending anything mission critical.

Thanks for your feedbacks! In fact, I developed this tool just to get some help in my everyday work, because I'm used to connect to several SSH at the same time of my customers (My Terminal => Bridge SSH => Target SSH), and it can become a little bit confused with SCP command..! This kind of tool helped me a lot, and I choose to share it with other DevOps/SysAdmin. @beeskneecaps: I never thought about the link to des…

Some terminal emulators support in-band file transfers using zmodem. SecureCRT does this.

iTerm: http://grack.com/blog/2011/10/26/automatic-file-transfer-in-...

Re: Curl.io – Share files from your terminal or ssh

#52

Couldn't find any feedback form on the site, so I guess I'll post it here. Seems there's a small bug in the way the time, dispayed in the console, is calculated. FilerCtrl uses: var c = new Date; a.date = c.toDateString() + " " + ("0" + c.getUTCHours()).slice(-2) + ":" + ("0" + c.getUTCMinutes()).slice(-2) + ":" + ("0" + c.getUTCSeconds()).slice(-2); Which does not respect the current timezone. I suppose it could be…

Thanks for the feedback, indeed I didn't want to use momentjs to overload the speed of the site, but I didn't notice for that mistake, thanks I appreciate :-)

Re: Curl.io – Share files from your terminal or ssh

#54
post #41

While I'm doing command line file sharing, why not just directly transfer a file to my peer with netcat? Server: $ cat hugefile.ext | nc -l -p 9999 Client: $ nc server.ip 9999 > hugefile.ext We tend to forget how the network is built, and how easy it is to use it with the right tools.

Ah, a candidate for the useless use of cat award.

The first command can be given more easily as:

  nc -l -p 9999 
(which also mirrors the logic of the second, modulo nc's idiosyncratic argument syntax)

Re: Curl.io – Share files from your terminal or ssh

#55
post #54
post #41

While I'm doing command line file sharing, why not just directly transfer a file to my peer with netcat? Server: $ cat hugefile.ext | nc -l -p 9999 Client: $ nc server.ip 9999 > hugefile.ext We tend to forget how the network is built, and how easy it is to use it with the right tools.

Ah, a candidate for the useless use of cat award. The first command can be given more easily as: nc -l -p 9999 (which also mirrors the logic of the second, modulo nc's idiosyncratic argument syntax)

The cat version much more clearly represents the flow of data. We read left to right, it makes no sense to me to have data flow written right to left (and only for input files, while output files read left to right).

When building commands up from basics, it makes much more sense to start with cat. I will typically cat the file to see it's contents, then modify the command with a pipe to another program, and make keep adding processing steps to the end of the pipeline. Your Just because you read something on a webpage that one time doesn't mean it is the one true way.

Re: Curl.io – Share files from your terminal or ssh

#56

Hey everyone, don't forget that copying commands from web sites and pasting them into a terminal window can be very dangerous http://thejh.net/misc/website-terminal-copy-paste

So paste into a text editor first is what you're saying?

Re: Curl.io – Share files from your terminal or ssh

#57
Hello everyone,

Thanks for all these feedbacks!

I have considered most of them.

Well, as I can see the most of you are worried about the security, that I understand.

So I've just added little help with a GPG encryption right from your terminal before sending the file.

I think this is the most important things I can make right now, while I do not plan to install SSL certificate given that I don't make money with this site, and the server cost is enough.

But if some of you, guys, are interested in more professional features, let me know, we can discuss about it.

Cheers!

dizda

Re: Curl.io – Share files from your terminal or ssh

#58

Great idea but where I'd find value in something like this is for securely transferring files to people who, presumably, are somewhat clued. If I needed to do that, doing it without SSL seems counter productive (as has been pointed out). Additionally, while the four hour deletion is nifty, were I building this (could be a fun toy to hack together), I'd like a settable timer or download count. The comment about auto g…

Hey, thanks for your feedback. A gpg encryption help has been added, you can check this out.

Re: Curl.io – Share files from your terminal or ssh

#59

Hey everyone, don't forget that copying commands from web sites and pasting them into a terminal window can be very dangerous http://thejh.net/misc/website-terminal-copy-paste

So paste into a text editor first is what you're saying?

That works. Or use a clipboard viewer (on OS X you can view the clipboard in the Finder)

Re: Curl.io – Share files from your terminal or ssh

#60

Yikes, this should really be accessible only via HTTPS. Copying commands from untrusted websites (or insecure connections) and pasting them into your terminal is not a good idea: http://thejh.net/misc/website-terminal-copy-paste

Don't know about you, but an SSL certificate does nothing to increase my level of trust of a website.

Hey, I'm not sure that the SSL certificate will change something in the trust of the website, because the file will be hold by the website anyway. So according to me, I think you have to encrypt your file before sending it to the server, that you'll be sure to be the only one who can read your file (and other people who you give your passphrase).

I've updated the website with gpg encryption w/ passphrase FYI.

Post reply on HN