Re: ssh processes lingering after scp

From: Jonathan Loh (kj6loh_at_yahoo.com)
Date: 10/06/04

  • Next message: Darren Tucker: "Re: FW: HELP !!! ssh-askpass... No such file or directory."
    Date: Wed, 6 Oct 2004 01:32:52 -0700 (PDT)
    To: Susan McConnell <susanm@jbpc.co.uk>, secureshell@securityfocus.com
    
    

    These are just zombies, most likely someone is executing this script with a
    nohup and bacgrounding it. and then is logging out before the script finishes.
    --- Susan McConnell <susanm@jbpc.co.uk> wrote:

    > We're copying a number of files, sometimes up to 3-400, using
    > scp called from a perl script. The command issued by the perl script is:
    >
    > my $cmd = "scp $basedir/data/$basename remote.example.com:/tmp";
    > system ($cmd);
    >
    > We're finding that some ssh processes, with a PPID of 1, remain after the
    > script has completed. "ps -ef" shows:
    >
    > UID PID PPID C STIME TTY TIME CMD
    > root 12904 1 0 09:35 pts/0 00:00:00 /usr/bin/ssh -x ...
    > root 12990 1 0 09:36 pts/0 00:00:00 /usr/bin/ssh -x ...
    > root 12995 1 0 09:36 pts/0 00:00:00 /usr/bin/ssh -x ...
    > root 13000 1 0 09:36 pts/0 00:00:00 /usr/bin/ssh -x ...
    > root 13251 1 1 09:37 pts/0 00:00:00 /usr/bin/ssh -x ...
    >
    > The full command shown in each case (removed from above to prevent line
    > wrapping) is:
    >
    > /usr/bin/ssh -x -oFallBackToRsh no remote.example.com scp -t /tmp
    >
    > I've tried "shopt -s huponexit" but that hasn't resolved this. Can anyone
    > shed some light on why this is happening and how we can fix it?
    >
    > Thanks for any help or ideas.
    >
    > Sue
    >

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com


  • Next message: Darren Tucker: "Re: FW: HELP !!! ssh-askpass... No such file or directory."

    Relevant Pages

    • Re: Qpopper and init.d--Solved
      ... >> script from the link above is that my popper exec ... Do You Yahoo!? ... Mail has the best spam protection around ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
      (Fedora)
    • [NEWS] IBM Informix Web DataBlade Local Root by Design
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... that ease development of "intelligent", interactive, Web-enabled database ... person who has access to change the Perl script. ...
      (Securiteam)
    • Re: SAR
      ... I think I will try to make use of your script, and the tutorial looks good as well. ... I don't bother saving the sysstat data longer than the default, ... Do You Yahoo!? ... Mail has the best spam protection around ...
      (RedHat)
    • Accessing page using Mechanize, have to go thr proxy
      ... (On windows, using ActivePerl) ... variables on commandline and then running the script ... Do You Yahoo!? ... Mail has the best spam protection around ...
      (perl.beginners)
    • Re: [SLE] Segmantation Faults
      ... > Keep in mind that firefox normally launches from a script, ... > and gdb expects a binary. ... > Do You Yahoo!? ... Mail has the best spam protection around ...
      (SuSE)