I use the functions below to copy files from one server to another. It works most of the time, but sometimes I start getting this error in log files:
Module
In my case, I commented out the one line in ssh2.ini located here: /etc/php5/mods-available/ssh2.ini
ssh2.ini
The content of this file now is as follow:
;extension=ssh2.so
Thanks!