I have this function which can handle a connection to ssh.
connectSession() { std::string _ErrMsg; MyException errMsg; int port = 22; try {