RE: ssh remote command execution and cron
From: Rense Buijen (Rense_at_dct-mail.com)
Date: 10/23/03
- Previous message: Jannik Sültz | neteye: "SSH Shell"
- Maybe in reply to: Rick Cone, Secure Payment Systems: "ssh remote command execution and cron"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- application/octet-stream attachment: SSH-Expect.exp
- Previous message: Jannik Sültz | neteye: "SSH Shell"
- Maybe in reply to: Rick Cone, Secure Payment Systems: "ssh remote command execution and cron"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|