Micro Focus Frequent Contributor
Micro Focus Frequent Contributor
367 views

get error「SSH Channel no longer connected!」when run SSH Shell

Envrionment:

OO 10.60;  Windows Server 2012

Issue description:

get error「SSH Channel no longer connected!」when run /Base/Library/Operations/Remote Command Execution/SSH/v1.0/SSH Shell

Troubleshooting done:

Customer has many SSH Shell operations.

This problem happened when the previous SSH Shell response following:

{SESSION_ON=true, returnCode=0, visualized=<Frames></Frames>, returnResult=ssh 10.124.20.116 "chown apache:apache /work/ootest/test2/test036 .txt", STDOUT=ssh 10.124.20.116 "chown apache:apache /work/ootest/test2/test036 .txt", Result=ssh 10.124.20.116 "chown apache:apache /work/ootest/test2/test036 .txt"}

While the normal response of SSH Shell should be following:

{SESSION_ON=true, returnCode=0, visualized=<Frames><Frame index="1">ssh 10.124.20.116 "chown apache:apache /work/ootest/test2/test035</Frame><Frame index="2">.txt"0.124.20.116 "chown apache:apache /work/ootest/test2/test035[root@oo01 ~]#</Frame></Frames>, returnResult=ssh 10.124.20.116 "chown apache:apache /work/ootest/test2/test035 .txt"[root@oo01 ~]# , STDOUT=ssh 10.124.20.116 "chown apache:apache /work/ootest/test2/test035 .txt"[root@oo01 ~]# , Result=ssh 10.124.20.116 "chown apache:apache /work/ootest/test2/test035 .txt"[root@oo01 ~]#

(Difference is  "[root@oo01 ~]# " at the end.)

Then the next SSH Shell will failed with error. {SESSION_ON=true, returnCode=-1, returnResult=SSH Channel nolonger connected!, STDOUT=null, Result=SSH Channel nolonger connected!}

This happened should be caused by the previous command is not returned normally.

However this does not always happen in customer's envrionment, hard to reproduce in our environment and no regularity.

Does anyone know why this happen? Any configuration needed for the ssh remote Server?

 

Tags (1)
0 Likes
2 Replies
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: get error「SSH Channel no longer connected!」when run SSH Shell

Customer is using the ssh logon and logoff too?

Are you seeing this behavior with the v.2.0 of the operations?

Thank you,

Andrei Vasile Truta
0 Likes
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: get error「SSH Channel no longer connected!」when run SSH Shell

1: Customer is using the ssh logon and logoff too?

I did not get the mean, customer use the operation:

/Base/Library/Operations/Remote Command Execution/SSH/v1.0/SSH Shell

They are using ssh to login and logout

2:Are you seeing this behavior with the v.2.0 of the operations?

No, customer using the CP 1.60, as they do not want to upgrade. we will try to ask them to upgrade.

Thank you!

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.