add SSHConnection and SSHSessionKey classes
copy v3 to v2