> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Gregg, Jim
> Sent: Thursday, June 30, 2005 9:19 AM
> To: [email protected]
> Subject: Re: SSH Implementation problem
> 
> 
> Joel,
> 
> There is nothing in /tmp/sshd.stderr.
> 
> Proc SSHD:
> //SSHD     PROC
> //SSHD     EXEC PGM=BPXBATCH,REGION=0M,TIME=NOLIMIT,
> // PARM='PGM /bin/sh -c /etc/ssh/sshd.sh'
> //STDERR  DD PATH='/tmp/sshd.stderr',
> //        PATHOPTS=(OWRONLY,OCREAT,OAPPEND),PATHMODE=(SIRWXU)
> 
> Script :
> /etc/ssh/sshd.sh
>       #!/bin/sh
>       nohup /usr/sbin/sshd -f /etc/ssh/sshd_config &
>       sleep 1
> 
> Jim

Jim,

I'm really unsure of this, so I may well be totally off course. But you
might want to try:

Script :
 /etc/ssh/sshd.sh
        #!/bin/sh
        nohup /usr/sbin/sshd -f /etc/ssh/sshd_config >/dev/null 2>&1 &
        sleep 1

I just have a vague rememberance that if you don't redirect stdout and
stderr, that "something bad" can happen even with a nohup. But I cannot
remember what it is.

Also, if you want this started at IPL time, have you considered placing
the commands in the "/etc/rc" file, at the end? I do that for a number
of daemons. Just something like:

# start the ssh daemon
export _BPX_JOBNAME='SSHD' /usr/sbin/sshd -f /etc/ssh/sshd_config &

I use the above to start INETD, SYSLOGD, CROND, TIMED, and IMWEBSRV
(HTTPD Server).

# Start the INET daemon for remote login activity
_BPX_JOBNAME='INETD' /usr/sbin/inetd /etc/inetd.conf &

# Start the syslog daemon
_BPX_JOBNAME='SYSLOGD' /usr/sbin/syslogd -c -u &

# Start the cron daemon
_BPX_JOBNAME='CROND' /usr/sbin/cron &

# Start the time daemon
_BPX_JOBNAME='TIMED' /usr/lpp/tcpip/sbin/timed -l &

# Start the HTTPD web server
_BPX_JOBNAME='IMWEBSRV' /usr/lpp/internet/sbin/httpd &

# Set the initial crontab
/bin/crontab  /etc/crontab

sleep 5

--
John McKown
Senior Systems Programmer
UICI Insurance Center
Information Technology

This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its'
content is protected by law.  If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to