Refactor fo the SSH class.

Fixed some bugs in the initial development.
Added the ping test into the inter vmconnectivity test.
Deleted unused class.