350351352353354355356357358
protected Session createSession() throws JSchException { JSchLogger.init(); JSch sch = new JSch(); Session session = sch.getSession("sshd", "localhost", sshPort); session.setUserInfo(new SimpleUserInfo("sshd")); session.connect(); return session; }
7374757677787980
sshd.start(); JSchLogger.init(); JSch sch = new JSch(); session = sch.getSession("sshd", "localhost", port); session.setUserInfo(new SimpleUserInfo("sshd")); session.connect(); }