Re: SSH trampoline leaves processes running.



On 2007-08-27, Darren Tucker wrote:

On 2007-08-19, Adam Funk <a24061@xxxxxxxxxxxxx> wrote:
[...]
Thanks very much for this very useful tip!

I've noticed, however, that the related processes don't terminate, so
every now and then I notice that `ps ux` includes several old ones
with the descriptions "sshd: adam@pts/0" and "sshd: adam@notty". I
can kill them without any problem and AFAIK they don't cause trouble,
but is this a normal result of ssh trampoline?

Some versions of netcat don't check if their input has closed so they
don't shut down cleanly in that case.

In my case, that's the version of netcat installed on the gateway
machine, right?


I used to use this, which worked
fine:

http://www.meadowy.org/~gotoh/projects/connect

but I believe that there are some versions of netcat that also work.

There's also a patch to sshd that will send a SIGHUP to processes when
trying to close them down.

I'll look into putting connect in ~/bin/ on my account on the gateway
machine. Thanks for the advice.
.



Relevant Pages

  • Re: how to use netcat as gateway?
    ... I think we are all well aware/agree that using windows 98 as a 'gateway' is ... off using that 'swiss army knife' called netcat. ...
    (Security-Basics)
  • Re: SSH over SSH
    ... You used the word "gateway" in your post; it has the same meaning here as ... "nc" is netcat. ... Richard Silverman ...
    (comp.security.ssh)