Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#9 closed defect (fixed)

Putty does not exit when remote command terminates — at Version 4

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: critical Milestone: 1.0
Component: Client Keywords: win32
Cc:

Description (last modified by Antoine Martin)

In ssh-mode, we launch a remote X command and putty is still running when the command terminates.
This causes the session to remain "active" on the client despite the fact that it is really finished...

This happens with all the clients we can use: TortoisePlink.exe, Plink.exe as well as openssh (via cygwin).
Looks like the clients refuse to shutdown whilst there is still a tunnel (the X display connection) so we may have to use a trick on the server and run the command via a wrapper which will take care of killing the ssh process when the command terminates.

Change History (4)

comment:1 Changed 15 years ago by Antoine Martin

Description: modified (diff)
Owner: changed from Antoine Martin to Antoine Martin
Status: newaccepted

comment:2 Changed 15 years ago by Antoine Martin

done the wrapper script hack: r1801

But the problem now is that putty moans and displays an alert box to the user...

So the final solution will be to:

  • use openssh?
  • get the script to send a message to the server (socat?) which will be relayed to the client so IT can kill plink
Last edited 13 years ago by Antoine Martin (previous) (diff)

comment:3 Changed 15 years ago by Antoine Martin

Resolution: fixed
Status: acceptedclosed

Done: start ssh session via wrapper script which will pass CLOSE_SESSION to the client via the server: r1804

Last edited 13 years ago by Antoine Martin (previous) (diff)

comment:4 Changed 13 years ago by Antoine Martin

Description: modified (diff)
Note: See TracTickets for help on using tickets.