We have struggled with this too, so will share the minimum steps needed to setup Net::SSH2 lib on Cent OS: Install pre-requisite libs: sudo yum install libgcrypt-devel sudo yum install zlib-devel Download libssh2 source code from here. Untar and cd to the…