Bug 262 - ssh fails when run by cron.
Summary: ssh fails when run by cron.
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: -current
Hardware: Other Other
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-03 15:21 AEST by Glen Lapham
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Glen Lapham 2002-06-03 15:21:54 AEST
I'm running OpenSSH v3.0.2 on MP-RAS. I am having problems running ssh by cron.
I can run a script from the command line which executes ssh and does a simple
'who' on the remote system (running OpenSSH v3.1).  The script is:

/usr/local/bin/ssh <user@host> "who"

When I run it from cron, I get the error:    select: No such device or address
I turn DEBUG3 on and get the following just before the above error:

debug3: channel_close_fds: channel 0: r 6 w 7 e 8
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug2: fd 2 is not O_NONBLOCK

It seems to be a file descriptor problem when it is freeing fds.

In the crontab,  I have tried  /usr/bin/ksh and /usr/bin/-ksh.  Same thing 
happens.  Have also tried v3.2.2 and used the -T option. No luck. 

Has anyone encountered this before on any OS?

Glen
Comment 1 Markus Friedl 2002-06-07 07:30:05 AEST
i cannot reproduce this. does it work if you redirect the output?
Comment 2 Damien Miller 2003-01-07 18:10:50 AEDT
6 months, no followup == no bug
Comment 3 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED