Operation Support SSHv1

  • KM03191113
  • 28-Jun-2018
  • 21-May-2021

Summary

It's a limitation in a third party library OO uses. The limit is Java Secure Channel (JSch) only supports SSHv2

Question

Running an operation using "SSH Shell Logon", using SSHv1. and it throws the following error.


{exception=com.hp.oo.content.ssh.exceptions.SSHException: com.jcraft.jsch.JSchException: invalid server's version string
at com.hp.oo.content.ssh.services.impl.SSHServiceImpl.<init>(SSHServiceImpl.java:137)
at com.hp.oo.content.ssh.actions.SSHShellLogon.sshLogon(SSHShellLogon.java:94)
at sun.reflect.GeneratedMethodAccessor1282.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.hp.oo.sdk.plugins.abstracts.BaseActionPlugin.execute(BaseActionPlugin.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.hp.oo.maven.PluginAdapterImpl.executePlugin(PluginAdapterImpl.java:328)
at com.hp.oo.maven.PluginAdapterImpl.execute(PluginAdapterImpl.java:248)
at com.hp.oo.execution.control.actions.contentexecution.ContentExecutionActions.executeContentAction(ContentExecutionActions.java:97)
at sun.reflect.GeneratedMethodAccessor785.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:62)
at io.cloudslang.worker.execution.services.ExecutionServiceImpl.executeStep(ExecutionServiceImpl.java:326)
at io.cloudslang.worker.execution.services.ExecutionServiceImpl.execute(ExecutionServiceImpl.java:80)
at io.cloudslang.worker.management.services.SimpleExecutionRunnable.executeRegularStep(SimpleExecutionRunnable.java:167)
at io.cloudslang.worker.management.services.SimpleExecutionRunnable.run(SimpleExecutionRunnable.java:120)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at io.cloudslang.worker.management.services.WorkerThreadFactory$1.run(WorkerThreadFactory.java:33)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.jcraft.jsch.JSchException: invalid server's version string
at com.jcraft.jsch.Session.connect(Session.java:292)
at com.hp.oo.content.ssh.services.impl.SSHServiceImpl.<init>(SSHServiceImpl.java:127)
... 26 more
;SESSION_ON=true;returnCode=-1;returnResult=com.jcraft.jsch.JSchException: invalid server's version string;TimedOut=false;Result=com.jcraft.jsch.JSchException: invalid server's version string;}

Answer

It's a limitation in a third party library OO uses. The limit is Java Secure Channel (JSch) only supports SSHv2
You can refer to the below site:
http://www.jcraft.com/jsch/