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
.
FYI - those steps above ☝️ are specific to Ubuntu/Debian packaging. But appreciate your comments, sure it will be helpful for some!