Refactor for the SSH class.

Fixed some bugs in the initial development.
Added the ping test into the inter vmconnectivity test.
Deleted unused class.
this comment is not nice to add in a final version