Added the support of the ssh2 extension

This PR is built on top of #144 for now as I need the work done in it. I will rebase it once the other PR is merged