chkconfig --level 2345 sshd off
chkconfig --level 2345 v_sshd on

Run this on the main server and then...

service sshd stop
service v_sshd start

DOn't try and run the v_* scripts on the virtual server, just the main
server, if you will look in /etc/init.d

[root@tdcmailhostsrv2 root]# cd /etc/init.d
[root@tdcmailhostsrv2 init.d]# ls
aep1000    halt       linuxconf-setup  radvd       sshd        v_xinetd
anacron    httpd      lpd              random      syslog      xfs
apmd       identd     mysqld           rawdevices  tux         xinetd
atd        innd       netfs            rebootmgr   v_httpd     ypbind
autofs     ipchains   network          rhnsd       v_named     yppasswdd
bcm5820    iptables   nfs              sendmail    vncserver   ypserv
crond      kdcrotate  nfslock          single      v_sendmail  ypxfrd
cups       keytable   nscd             snmpd       vservers
functions  killall    ntpd             snmptrapd   v_smb
gpm        kudzu      portmap          squid       v_sshd

You will see all the other scripts that need to be replaced ie httpd, named,
etc...

...it will fix it and it will come up right the next time you reboot. SSH is
listening on all the IPs on the box until you do this, look thought the docs
for a better explanation.

Darryl

>-----Original Message-----
>From: Kapeller Rene PSI [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, December 05, 2002 7:39 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [vserver] Patch for RedHat 
>kernel-source-2.4.18-14.i386.rpm
>
>
>Darryl,
>sorry for my dumm question.
>Meanwhile I have done exactly with a 2.4.19 kernel what you suggested 
>and things work fine, except:
>
>I have a 'root-server' on 'xxx.xxx.1.10'
>and I have a 'vserver1' running with
>IPROOT="xxx.xxx.1.11"
>IPROOTDEV=eth0
>and I can successfily 'start' and 'enter' the 'vserver1'.
>But if I try to connect to 'vserver1' via ssh, I end up in a 
>session on 
>the 'root-server'.
>
>I even set
>ListenAddress xxx.xxx.1.11
>in /etc/ssh/sshd_conf on the 'vserver1', but it does not help either.
>
>Hmmmm...?
>
>- Rene
>
>Darryl Engle wrote:
>> Rene,
>> When configuring the kernel chose the "Code Maturity Level 
>Option" then
>> check "Prompt for Development and/or Incomplete 
>Code/Drivers" and your
>> SCSI_AACRAID driver/module should show up under the SCSI 
>options, it should
>> be there now, just greyed out. E-mail me if you need more help.
>> 
>> 
>>>-----Original Message-----
>>>From: Kapeller Rene PSI [mailto:[EMAIL PROTECTED]]
>>>Sent: Wednesday, December 04, 2002 11:33 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: [vserver] Patch for RedHat kernel-source-2.4.18-14.i386.rpm
>>>
>>>
>>>
>>>Hi,
>>>I want to patch the original RH-8.0 kernel but having difficulty.
>>>What am I doing wrong?
>>>(The reason for using this kernel is, that I need 
>SCSI_AACRAID support,
>>>which does not yet come 'the original' 2.4 kernels.)
>>>
>>>Thank's - Rene
>>>
>>>------------
>>>
>>>[root@slslc02 src]# path -p0 < patch-2.4.18ctx10-ctx12
>>>-bash: path: command not found
>>>[root@slslc02 src]# patch -p0 < patch-2.4.18ctx10-ctx12
>>>can't find file to patch at input line 4
>>>Perhaps you used the wrong -p or --strip option?
>>>The text leading up to this was:
>>>--------------------------
>>>|diff -rc2P linux-2.4.18ctx-10/Makefile linux-2.4.18ctx-12/Makefile
>>>|*** linux-2.4.18ctx-10/Makefile     Tue Mar 19 23:20:34 2002
>>>|--- linux-2.4.18ctx-12/Makefile     Tue Jul  2 12:11:33 2002
>>>--------------------------
>>>File to patch:
>>>[root@slslc02 src]# rm linux-2.4
>>>rm: remove symbolic link `linux-2.4'? y
>>>[root@slslc02 src]# mv linux-2.4.18ctx10-ctx12 linux-2.4.18ctx-12
>>>[root@slslc02 src]# ln -s linux-2.4.18ctx-12 linux-2.4
>>>[root@slslc02 src]# patch -p0 < patch-2.4.18ctx10-ctx12
>>>patching file linux-2.4.18ctx-12/Makefile
>>>Hunk #1 FAILED at 2.
>>>1 out of 1 hunk FAILED -- saving rejects to file 
>>>linux-2.4.18ctx-12/Makefile.rej
>>>patching file linux-2.4.18ctx-12/fs/proc/array.c
>>>Hunk #1 FAILED at 297.
>>>Hunk #2 FAILED at 315.
>>>2 out of 2 hunks FAILED -- saving rejects to file 
>>>linux-2.4.18ctx-12/fs/proc/array.c.rej
>>>patching file linux-2.4.18ctx-12/include/linux/sched.h
>>>Hunk #1 FAILED at 292.
>>>Hunk #2 succeeded at 292 with fuzz 1 (offset -16 lines).
>>>Hunk #3 FAILED at 432.
>>>Hunk #4 succeeded at 983 with fuzz 2.
>>>2 out of 4 hunks FAILED -- saving rejects to file 
>>>linux-2.4.18ctx-12/include/linux/sched.h.rej
>>>patching file linux-2.4.18ctx-12/include/net/route.h
>>>Hunk #1 FAILED at 161.
>>>1 out of 1 hunk FAILED -- saving rejects to file 
>>>linux-2.4.18ctx-12/include/net/route.h.rej
>>>patching file linux-2.4.18ctx-12/kernel/exit.c
>>>Hunk #1 succeeded at 67 with fuzz 2.
>>>patching file linux-2.4.18ctx-12/kernel/fork.c
>>>Hunk #1 succeeded at 604 with fuzz 2.
>>>patching file linux-2.4.18ctx-12/kernel/sys.c
>>>Hunk #1 FAILED at 1068.
>>>1 out of 1 hunk FAILED -- saving rejects to file 
>>>linux-2.4.18ctx-12/kernel/sys.c.rej
>>>patching file linux-2.4.18ctx-12/net/ipv4/af_inet.c
>>>Hunk #1 succeeded at 482 with fuzz 2.
>>>Hunk #2 FAILED at 492.
>>>1 out of 2 hunks FAILED -- saving rejects to file 
>>>linux-2.4.18ctx-12/net/ipv4/af_inet.c.rej
>>>patching file linux-2.4.18ctx-12/net/ipv4/devinet.c
>>>Hunk #2 FAILED at 586.
>>>Hunk #3 FAILED at 723.
>>>Hunk #4 FAILED at 941.
>>>3 out of 4 hunks FAILED -- saving rejects to file 
>>>linux-2.4.18ctx-12/net/ipv4/devinet.c.rej
>>>patching file linux-2.4.18ctx-12/net/socket.c
>>>Hunk #1 FAILED at 1765.
>>>1 out of 1 hunk FAILED -- saving rejects to file 
>>>linux-2.4.18ctx-12/net/socket.c.rej
>>>
>> 
>
>
>-- 
>====  Rene Kapeller, WSLA/205, Paul Scherrer Institut, CH-5232 Villigen
>====  phone: +41-56-3102397 mobile: +41-79-3059088  fax: +41-56-3104413
>====  mailto:[EMAIL PROTECTED]    http://people.web.psi.ch/kapeller/
>

Reply via email to