Re: SFTP Batch without key

From: Per Hedeland (per_at_hedeland.org)
Date: 08/06/04

  • Next message: James: "valgrind and openssl"
    Date: Fri, 6 Aug 2004 20:41:08 +0000 (UTC)
    
    

    In article <m2zn59auki.fsf@darwin.oankali.net> Richard E. Silverman
    <res@qoxp.net> writes:
    >>>>>> "PH" == Per Hedeland <per@hedeland.org> writes:
    >
    > PH> If you have 'setsid' as a command on your OS, you can try
    > PH> interactively with something like
    >
    > PH> $ setsid sftp -b batchfile remotehost
    >
    >Or if not, then perhaps:
    >
    >perl -MPOSIX -e 'exit if fork(); setsid(); system("@ARGV")' ssh ...

    Thanks, nice tip! (There are other uses for this "take away the
    terminal" thing, e.g. in the past I've used it for forcing dump(8) to
    abort on error instead of hanging the system in single-user with a query
    on the console...)

    (Actually, when I saw a followup from you in the thread list I expected
    it to be a bashing for the gross SSH_ASKPASS hack suggestion...:-)

    --Per Hedeland
    per@hedeland.org


  • Next message: James: "valgrind and openssl"

    Relevant Pages

    • Re: Cant use SSH X forwarding with DHCP
      ... "Richard E. Silverman" wrote: ... > Nico> and X forwarding issue. ...
      (comp.security.ssh)
    • Re: Cant use SSH X forwarding with DHCP
      ... "Richard E. Silverman" wrote: ... > Nico> and X forwarding issue. ...
      (comp.security.ssh)
    • Re: CSVDE Multiple group export..
      ... Sorry richard still nothing... ... If there is an error in the command passed to the Run method, ... Microsoft MVP Scripting and ADSI ...
      (microsoft.public.windows.server.scripting)
    • Re: command line vs gui
      ... > Richard> administrator and the good old command line, ... I just discovered there's a *nix shell called vshnu that seems to be ... command is the one thing I really miss on *nix systems), ... in diverse areas of the filesystem without having to explicitly "cd". ...
      (comp.os.linux.misc)
    • Re: setsid not found on freebsd
      ... It seems that I do not have setsid on my system. ... Could you please tell me the way to install this command or may be the ... DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ... LIABILITY, OR TORT ARISING IN ANY WAY ...
      (freebsd-hackers)