Fix global name SSHException not defined error