Hi, In my case, ssh target is Ruijie Switch. Using linux ssh command can connect successful. I tried 0.1.72 and 0.2.9 and both failed. After I manually set "PreferredAuthentications" to "password,publickey", failed with 'Packet corrupt', suffix xxx is my message appending. Can anyone help?
13:31:36,796 [pool-1-thread-1] INFO c.t.t.c.a.connection.JschConnection - PreferredAuthentications: gssapi-with-mic,publickey,keyboard-interactive,password (JschConnection.java:267)
13:31:37,031 [pool-1-thread-1] ERROR c.t.t.c.a.connection.JschConnection - Auth fail for methods 'publickey,password' (JschConnection.java:270)
com.jcraft.jsch.JSchException: Auth fail for methods 'publickey,password'
at com.jcraft.jsch.Session.connect(Session.java:499) ~[jsch-0.2.9.jar:0.2.9]
at com.topsec.tap.collector.agent.connection.JschConnection.initializeOpen(JschConnection.java:268) [tap-collector-agent-1.0.15-SNAPSHOT.jar:1.0.15-SNAPSHOT]
at com.topsec.tap.collector.agent.connection.JschConnection.open(JschConnection.java:141) [tap-collector-agent-1.0.15-SNAPSHOT.jar:1.0.15-SNAPSHOT]
at com.topsec.tap.collector.agent.connection.Connection$1.execute(Connection.java:68) [tap-collector-agent-1.0.15-SNAPSHOT.jar:1.0.15-SNAPSHOT]
at com.topsec.tap.collector.agent.connection.Connection$1.execute(Connection.java:64) [tap-collector-agent-1.0.15-SNAPSHOT.jar:1.0.15-SNAPSHOT]
at com.topsec.tap.collector.agent.util.TimeoutExecution.call(TimeoutExecution.java:61) [tap-collector-agent-1.0.15-SNAPSHOT.jar:1.0.15-SNAPSHOT]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_312]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_312]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_312]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_312]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_312]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_312]
13:31:37,032 [pool-1-thread-1] ERROR c.t.t.c.a.connection.JschConnection - try again: (JschConnection.java:271)
13:31:37,032 [pool-1-thread-1] INFO c.t.t.c.a.connection.JschConnection - PreferredAuthentications: password,publickey (JschConnection.java:273)
13:31:37,080 [pool-1-thread-1] ERROR c.t.t.c.a.connection.JschConnection - Packet corruptxxx: (JschConnection.java:299)
com.jcraft.jsch.JSchException: Packet corrupt
at com.jcraft.jsch.Session.start_discard(Session.java:1307) ~[jsch-0.2.9.jar:0.2.9]
at com.jcraft.jsch.Session.read(Session.java:1132) ~[jsch-0.2.9.jar:0.2.9]
at com.jcraft.jsch.Session.connect(Session.java:310) ~[jsch-0.2.9.jar:0.2.9]
at com.topsec.tap.collector.agent.connection.JschConnection.initializeOpen(JschConnection.java:274) [tap-collector-agent-1.0.15-SNAPSHOT.jar:1.0.15-SNAPSHOT]
at com.topsec.tap.collector.agent.connection.JschConnection.open(JschConnection.java:141) [tap-collector-agent-1.0.15-SNAPSHOT.jar:1.0.15-SNAPSHOT]
at com.topsec.tap.collector.agent.connection.Connection$1.execute(Connection.java:68) [tap-collector-agent-1.0.15-SNAPSHOT.jar:1.0.15-SNAPSHOT]
at com.topsec.tap.collector.agent.connection.Connection$1.execute(Connection.java:64) [tap-collector-agent-1.0.15-SNAPSHOT.jar:1.0.15-SNAPSHOT]
at com.topsec.tap.collector.agent.util.TimeoutExecution.call(TimeoutExecution.java:61) [tap-collector-agent-1.0.15-SNAPSHOT.jar:1.0.15-SNAPSHOT]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_312]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_312]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_312]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_312]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_312]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_312]
13:31:37,080 [pool-1-thread-1] ERROR c.t.t.c.a.connection.JschConnection - Create Connection To Host 172.16.255.254 Error:Packet corrupt (JschConnection.java:307)
13:31:37,081 [pool-1-thread-1] INFO c.t.t.c.a.connection.JschConnection - Create Connection error172.16.255.254 Error:Packet corrupt (JschConnection.java:146)
Hi, In my case, ssh target is Ruijie Switch. Using linux ssh command can connect successful. I tried 0.1.72 and 0.2.9 and both failed. After I manually set "PreferredAuthentications" to "password,publickey", failed with 'Packet corrupt', suffix xxx is my message appending. Can anyone help?
connect testing code:
failed message:
jsch config:
java -version
connect with linux command ssh -vvv: