net.schmizz.sshj.transport.TransportException: Unable to reach a settlement
问题 I am trying to do ssh into other machine using SSHJ. PFA code below (excluded try/catch/finally blocks). Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); final SSHClient sshClient = new SSHClient(); sshClient.addHostKeyVerifier(new PromiscuousVerifier()); sshClient.connect("test-hostname"); sshClient.authPublickey("test-user", private_key_path); Session session = sshClient.startSession(); Session.Command cmd = session.exec(TEST_SSH_COMMAND); cmd.join(5, TimeUnit