SSh-agent not dying after vnc viewer
Financial Systems & Economic Analytics
financial.seal "at" cox.net
Wed Feb 1 15:01:01 2006
On my system, I am using xinetd following the vnc mail list example.
When is the ssh getting call when a vnc session starts?
How to I set up a script or set the ssh session to die after a short
time (say 60 secs)?
S. I. Becker wrote:
>> Ssh clients hold the connection open so long as there is something
>> using it,
>> in this case a forwarded port. There's no way that the client could
>> without causing the forwarded port to close, too.
> That's the point! You initiate the ssh session, with a shell/script
> that will just exit after, say, 60 seconds. In the mean time you set
> up the tunnelled VNC session. The ssh session exits when the time is
> up, but is held open by the open tunnelled port(s). Then when you do
> close the VNC session, the ssh session closes too because there is now
> nothing to keep it open, which is what I thought was wanted.