The current PHP ssh2 extension via PECL won't compile under PHP7.
Using a more recent version via PHP's GitHub we can make this work.
$ sudo apt-get install autoconf libssh2-1-dev
$ curl -LO https://github.com/php/pecl-networking-ssh2/archive/master.zip
$ unzip master.zip
$ cd pecl-networking-ssh2-master
$ phpize
$ ./configure
$ make
Extension will be available for use at ./modules/ssh2.so
.
i just found the solution just follow the wget steps when compline after
run the followign commands
this will install ssh2 and yes edit you php.ini file to enable extension
to verify run commad
php -m | grep ssh2
output
ssh2