Hello all, I'm using the attached patch. With it, if you add OPTIONS="-6" in /etc/sysconfig/sshd (this kind of sysconfig/<name> is a pretty normal RHL practice), then you can enable ipv4 and ipv6 on RHL without problems and without having to modify the init.d/sshd script. This or something like should IMO be added. Removing 'noreplace' from sshd_config definition in openssh.spec should also be considered. -- Pekka Savola "Tell me of difficulties surmounted, Netcore Oy not those you stumble over and fall" Systems. Networks. Security. -- Robert Jordan: A Crown of Swords -------------- next part -------------- --- contrib/redhat/sshd.init.orig Wed Feb 28 02:21:22 2001 +++ contrib/redhat/sshd.init Wed Apr 25 18:00:53 2001 @@ -15,6 +15,8 @@ # source function library . /etc/rc.d/init.d/functions +[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd + RETVAL=0 # Some functions to make the below more readable @@ -104,7 +106,7 @@ echo -n "Starting sshd: " if [ ! -f $PID_FILE ] ; then - sshd + sshd $OPTIONS RETVAL=$? if [ "$RETVAL" = "0" ] ; then my_success "sshd startup" "sshd"
Applied, thanks. As for 'noreplace'... Ermm.. Another one of those 'size of one, half of dozen of other'. I have no opinion either way. - Ben On Wed, 25 Apr 2001, Pekka Savola wrote:> Hello all, > > I'm using the attached patch. > > With it, if you add > > OPTIONS="-6" > > in > > /etc/sysconfig/sshd > > (this kind of sysconfig/<name> is a pretty normal RHL practice), then you > can enable ipv4 and ipv6 on RHL without problems and without having to > modify the init.d/sshd script. > > This or something like should IMO be added. > > Removing 'noreplace' from sshd_config definition in openssh.spec should > also be considered. > > -- > Pekka Savola "Tell me of difficulties surmounted, > Netcore Oy not those you stumble over and fall" > Systems. Networks. Security. -- Robert Jordan: A Crown of Swords >
Reasonably Related Threads
- OpenSSL + OpenSSH version problems
- 2.5.1p1 logout hangs after RHL crond start
- patch: contrib/redhat/openssh.spec updates for privsep
- PATCH: Round 2: RH initscripts backward compatibility
- Recent openssl is required for OPENSSL_free [Re: Please test snapshots for 3.0 release] (fwd)