if you're trying to connect to an ssh server in an environment where the ssh2 extension cannot be installed this pure-php implementation may be helpful:
http://phpseclib.sourceforge.net/documentation/net.htmlLigações à biblioteca » libssh2 que fornecem acesso a recursos (shell, execução remota, tunelamento, transferência de arquivos) em uma máquina remota usando um transporte criptográfico seguro.
if you're trying to connect to an ssh server in an environment where the ssh2 extension cannot be installed this pure-php implementation may be helpful:
http://phpseclib.sourceforge.net/documentation/net.html