Forums

curl with ssh versus console

I encounter different behavior using curl via ssh and console. With ssh:

19:23 ~/mysite $ curl http://www.weatheroffice.gc.ca/satellite/index_e.html
curl: (7) couldn't connect to host

and via console no problem.

Is ssh not recommended for outgoing requests?

Hmm, I think that's a bug on our side -- it looks like your sandbox hadn't been fully updated on the ssh server. I've fixed it for now, and made a note that we need to fix the underlying bug.

Thanks.

I am seeing similar behaviour with wget and pip install <url to zip on github> through ssh connection. seems fine using web console...

@barnsey, that's because of a bug in our ssh login code. We'll get it fixed.