How to connect to ubuntu server using ssh2_connect
step :
- install libssh2-1, php-ssh2 from terminal
- reload apache
- run again your php script
if you need to execute a script from remote server, you can using ssh2_exec($conn, 'pwd')
- see video for details