RE: ssh remote command execution and cron

From: Rense Buijen (Rense_at_dct-mail.com)
Date: 10/23/03

  • Next message: Asif Iqbal: "Re: PRNGD/Solaris 2.6/ssh 371p2"
    Date: Thu, 23 Oct 2003 12:59:38 +0200
    To: "Rick Cone, Secure Payment Systems" <rcone@securepaymentsystems.com>, <secureshell@securityfocus.com>
    
    
    

    I use expect to do the job and the logging.
    It can also test various things, see an example attached.
    Note: I'm not such a good expect scripter so take this as example only,
    it can be improved in a lot of ways. Hope it helps (it did for me).

    Greetings,

    Rense

    -----Original Message-----
    From: Rick Cone, Secure Payment Systems
    [mailto:rcone@securepaymentsystems.com]
    Sent: woensdag 22 oktober 2003 2:32
    To: secureshell@securityfocus.com
    Subject: [despammed] ssh remote command execution and cron

    Hi, I'm running SCO OpenServer, and I'm trying to use ssh running a
    remote
    command in cron. I'm getting the error:

    select: Invalid argument

     The remote command is run (started) okay, but unfortunately the ssh
    process
    stops immediately.

    Here is some debugging information:

    debug1: read PEM private key done: type RSA^M
    debug1: Authentication succeeded (publickey).^M
    debug1: fd 5 setting O_NONBLOCK^M
    debug1: fd 6 setting O_NONBLOCK^M
    debug1: fd 7 setting O_NONBLOCK^M
    debug1: channel 0: new [client-session]^M
    debug2: channel 0: send open^M
    debug1: Entering interactive session.^M
    debug2: callback start^M
    debug2: ssh_session2_setup: id 0^M
    debug1: Sending command: u/ub/pcr/tinqdmrsp.cmd^M
    debug1: channel 0: request exec^M
    debug2: callback done^M
    debug1: channel 0: open confirm rwindow 0 rmax 32768^M
    debug2: channel 0: rcvd adjust 131072^M
    debug1: channel_free: channel 0: client-session, nchannels 1^M
    debug1: fd 0 clearing O_NONBLOCK^M
    debug1: fd 1 clearing O_NONBLOCK^M
    debug1: fd 2 clearing O_NONBLOCK^M
    select: Invalid argument^M
    debug1: Transferred: stdin 0, stdout 0, stderr 26 bytes in 0.2 seconds^M
    debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 104.0^M
    debug1: Exit status -1^M

     Does anybody have any info on this?

    Thanks,

     Rick Cone
    Secure Payment Systems
    801 8th St. Suite 150-D
    Greeley, CO 80631
    970-352-9434 (office)
    970-352-0122 (fax)
    rcone@securepaymentsystems.com

    NOTE: This electronic message and
    attachment(s), if any, contains information
     which is intended solely for the
    designated recipient(s). Unauthorized
    disclosure, copying, distribution, or other
    use of the contents of this message or
    attachment(s), in whole or in part, is
    prohibited without the express
    authorization of the author of this
    message.

    ----------------------------------------------
    Filtered by despammed.com. Tracer: LAA229421066840390
    Remember: you can forward any spam that slips through the filters
    to the abuse desk here at Despammed.

    
    



  • Next message: Asif Iqbal: "Re: PRNGD/Solaris 2.6/ssh 371p2"

    Relevant Pages

    • openssh3.7p1 chroot patch not work on solaris 7
      ... debug1: monitor_child_preauth: test has been authenticated by privileged process ... debug3: mm_get_keystate: Waiting for new keys ... debug2: mac_init: found hmac-sha1 ... debug1: channel 0: new ...
      (comp.unix.solaris)
    • openssh3.7p1 chroot patch not work on solaris 7
      ... debug1: monitor_child_preauth: test has been authenticated by privileged process ... debug3: mm_get_keystate: Waiting for new keys ... debug2: mac_init: found hmac-sha1 ... debug1: channel 0: new ...
      (comp.security.ssh)
    • openssh3.7p1 chroot patch not work on solaris 7
      ... debug1: monitor_child_preauth: test has been authenticated by privileged process ... debug3: mm_get_keystate: Waiting for new keys ... debug2: mac_init: found hmac-sha1 ... debug1: channel 0: new ...
      (comp.security.ssh)
    • SSH works but SFtp does not work
      ... # This is the sshd server system-wide configuration file. ... debug1: read PEM private key done: type RSA ... debug2: bits set: 512/1024 ... debug1: session_open: channel 0 ...
      (comp.os.qnx)
    • SSH works but SFtp does not work
      ... # This is the sshd server system-wide configuration file. ... debug1: read PEM private key done: type RSA ... debug2: bits set: 512/1024 ... debug1: session_open: channel 0 ...
      (comp.security.ssh)