OVH Community, your new community space.

curl/wget and SSH


toineg
09-02-2015, 11:55
Hello,
I confirm you that external network calls are blocked when you log in to our servers via SSH (DNS, HTTP, etc...)

b777
31-01-2015, 02:06
Quote Originally Posted by freshwire
It's possible that the hosting packages have some sort of jailed/limited SSH which prevents you making remote connections. It doesn't appear to be an issue with CURL specifically.
Yeah that is what I thought too. It would be nice if there was a way to disable this "firewall"

Quote Originally Posted by freshwire
Does this command work?

Code:
wget -qO - http://uoco.net/h/
No, it doesn't work

This is what I get if I disable quiet mode:
Code:
Résolution de uoco.net... 2001:41d0:8:69df::2, 2001:41d0:8:69df::1, 37.59.46.223, ...
Connexion vers uoco.net|2001:41d0:8:69df::2|:80...échec: Famille d'adresses non supportée par le protocole.
Connexion vers uoco.net|2001:41d0:8:69df::1|:80...échec: Famille d'adresses non supportée par le protocole.
Connexion vers uoco.net|37.59.46.223|:80...échec: Le réseau n'est pas accessible.
Connexion vers uoco.net|178.32.48.241|:80...échec: Le réseau n'est pas accessible.

freshwire
30-01-2015, 21:08
It's possible that the hosting packages have some sort of jailed/limited SSH which prevents you making remote connections. It doesn't appear to be an issue with CURL specifically.

Does this command work?

Code:
wget -qO - http://uoco.net/h/

b777
30-01-2015, 14:36
Hello

I'm trying to run a php script from ssh that downloads a file on a remote host using curl.

The script is working fine if I access it from the browser but if I try to run it when connected via ssh to my pro hosting, I get "network is unreachable". I tried using file_get_contents or executing wget but I get the same error.

Is there a way to enable curl on ssh too?