From: "John Aldrich" <john(a)chattanooga.net>
On Sunday 31 July 2005 06:28 pm, John Aldrich wrote:
> HELP! I'd really like to get my :1 session back, since
that's the
session I
> tunnel to from my Win2k box at work. :-)
> Thanks
> John
Ok. Wez (James Weatherall) at RealVNC pointed me in the right direction to
find out what was blocking :1. He told me to see what process was
listening
on port 5901 using netstat -p. Unfortunately, that didn't show
anything,
so
as root, I ran "netstat -anp | grep 5901" and that showed
that a process
was
holding that port open. I looked up that process using "ps"
and that told
me
it was sshd. I killed that particular process, closed my existing VNC
session
and restarted it and voila! I have :1 back now! :-)
And of course anybody with good sense should have been aware that you'd
be using ssh tunneling if it was used for access from outside your home.
Then the ps trick would have found the spurious sshd running.
{^_-}