$connectt = ssh2_connect('190.195.218.196', 22);
print_r($connectt);
$check = ssh2_fingerprint($connectt);
if($check) {
$connect = (ssh2_auth_password($connectt,'git', 'git'));
}
$tunnel = ssh2_tunnel($connectt, '127.0.0.1', 22);
print_r($tunnel);
print_r($connectt);
print_r($_SERVER);
$url = "https://2ip.ru";
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER , false);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_PROXY, '127.0.0.1:22');
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4A);
$response = curl_exec($ch);
$responseInfo = curl_getinfo($ch);
$err = curl_error($ch);
$headerSize = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
curl_close($ch);
print_r($response);
Выдает ошибку с типом прокси Socks5,, socks4
В какую сторону копать?