Tenho esse codigo:
<?php
$ftp_server="MEUHOST.COM";
$conn_id = ftp_connect($ftp_server, 2222) or die("Couldn't connect to $ftp_server");
if (!ftp_connect($ftp_server))
echo "not connected";
else
echo "successful connected";
?>
<?php
$ftp_server="MEUHOST.COM";
$conn_id = ftp_connect($ftp_server, 2222) or die("Couldn't connect to $ftp_server");
if (!ftp_connect($ftp_server))
echo "not connected";
else
echo "successful connected";
?>
mas ele não está conectando em ssh.