SSH Connection stays open after Session closed

SSH Connection stays open after Session closed

avatar

On my Windows Version of RDM 10.0.4.0 I found out, that the ssh connection on standard port 22 still is alive AFTER the session was terminated by closing the connection tab and also when I do an exit command.

Troubleshooting was done with different types of settings but occures only in the use of SSH-Shell.
On closing the connection tab the "exit" command is executed on the remote server as expected.

In case of doing many work on different servers or also the same server you get more and more and more open and alive connections on the destination maschine. Here is a short output with ps on the server:

358 ? Ss 0:01 /usr/sbin/sshd -D
18568 ? Ss 0:00 sshd: root@notty
18745 ? Ss 0:00 sshd: root@notty
18902 ? Ss 0:00 sshd: root@notty
19032 ? Ss 0:00 sshd: root@notty
19159 ? Ss 0:00 sshd: root@pts/0

as you see the ended sessions are still connected to RDM

Greets - Manfred

All Comments (17)

avatar

Could you try with Putty to see if you get the same behavior?

David Hervieux

avatar

Hello,

When you say you do an exit command, does this mean that you have checked the "Exit command on disconnect" option in the Terminal tab?

Best regards,

Maurice

avatar




Hello David, yes I tried the same with Putty over RDM but it only occures on the use of SSH-Shell

Greets - Manfred

avatar










Hello Maurice, yes that's correct. But it makes no difference if the "Exit command on disconnect" is checked or not.

Greets - Manfred

avatar

Any news about the issue right now?

Greets - Manfred

avatar

Could you try to type exit to close the connection?

David Hervieux

avatar



also the same, session is closed but the connection stays alive to the server :-(

Greets - Manfred

avatar

I really don't know. We will check with the third party we use. This is strange that even with an exit it does not close the connection.

David Hervieux

avatar

As you see, all sessions in RDM are closed but you can see on the network monitor of my Kaspersky that the connections are still established.
Double checking on all of these servers from another laptop of me showes the connections are really established to the servers.

Greets - Manfred

screen.PNG

avatar

When you close RDM, does it close the connection?

David Hervieux

avatar

Yes, that's the only working way by now

Greets - Manfred

avatar

I will verify if we can dispose the connection in another way.

David Hervieux

avatar

Thank you, great :-)

Greets - Manfred

avatar

Hi,
I think that I've found the problem. I'm not sure it will resolve your specific case. This will be in the next beta release expected later today.

David Hervieux

avatar

Hi David,
thank you for your feedback. I tried some different configurations but by now it's only the problem on SSH-Shell.

Greets - Manfred

avatar

Hi,
Could you try the latest beta?

http://remotedesktopmanager.com/Home/Download#beta

David Hervieux

avatar

Hello David,

thank you for the tip. I tried the Beta right now and everything looks good.
After closing the SSH session the connection is also closed immediately :-)

Greets - Manfred