Live data from Hacker News

Curl.io – Share files from your terminal or ssh

curl.io

41–50 of 68 posts

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

#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.

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

#42
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.

While I do agree with you, I think a common "gotcha" is in dealing with port forwards and firewalls.

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

#43
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.

While I do agree with you, I think a common "gotcha" is in dealing with port forwards and firewalls.

Of course, NATs will break this type of scenario, but that can easily be solved with SSH tunneling into an accessible server.

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

#45
post #43

Earlier quoted context omitted.

While I do agree with you, I think a common "gotcha" is in dealing with port forwards and firewalls.

Of course, NATs will break this type of scenario, but that can easily be solved with SSH tunneling into an accessible server.

Reverse tunnelling is more useful for this sort of scenario. Then the other person can connect to the remote server port and it'll reach you.

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

#46
post #40

I'm always using transfer.sh. It will return a filename that can be shared. For example "curl --upload-file /tmp/test.txt http://transfer.sh/hello.txt" will return http://transfer.sh/6t9me/hello.txt .

Oh, and dropping files on the page will just change it into a download link.

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

#47
post #2

Just awesome. I tried custom shell scripts to upload to dropbox and other cloud storages but it never felt right. The other magic is, on Mac you can see the upload status in the browser window if you keep curl.io open.

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 destroy immediately the file, I'll put it tomorrow, thanks :)

I'm the author, @dizzda on twitter, you'll get additional informations about me.

About the security, i'll be honest, it was just to see if the concept can be interesting for other people, the only security (yet) is that the file will be auto-deleted in 4 hours. Files are hosted on a private dedicated server. So yeah, you can always take care to encrypt yourself your file before send it there.

If many people are interested to use this tool in a more professionnal-way, I can take some time to think about it... Anyway, it's just a real pleasure to hear your feedbacks guys! Please do not hesitate!

Cheers, dizda.

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

#50

What exactly is the point of this? I'm seriously asking. What's a scenario in which Curl.io would be useful?

In my case, I going through several SSH (My Terminal => Bridge SSH => Target SSH) to get for example a backup. It's just easier for me to get the file back with curl.io instead of using something like SCP in this kind of situation.
Post reply on HN