protected virtual void ConnectSessionThroughProxy(int sshPort, string proxyhost, int port, string userName, string password) { ProxyHTTP proxy = new ProxyHTTP(proxyhost, port); proxy.setUserPasswd(userName, password); m_jsch.setProxy(m_host, proxy); m_session = m_jsch.getSession(m_user, m_host, sshPort); if (Password != null) { m_session.setUserInfo(new KeyboardInteractiveUserInfo(Password)); } Hashtable config = new Hashtable(); config.Add("StrictHostKeyChecking", "no"); m_session.setConfig(config); m_session.connect(); }