I know that cPanel and plain redhat do not use proprietary ssh version and this will work fine for those servers. Enism DOES use special rpms (atlteast last time I used it long ago somebody correct me if I am wrong) and I am unsure about plesk. Please only do the following with cPanel or no control panel! For now I have placed this guide in the cPanel forum to avoid confusion and problems with people doing this on a server that will not accept the install. As always I take no responsibility if this guide screws up your server, it worked fine for me!
This guide is also posted on my website http://eth0.us/?q=node/5
Updated 12/2 to include open ssl upgrade
First step we will enable telnet so if something screws up you can still access the server:
#pico -w /etc/xinetd.d/telnet
change disable = yes to no
Save and then exit
#/etc/init.d/xinetd restart
First we will upgrade open ssl:
#cd /usr/local/src
#wget http://www.openssl.org/source/openssl-0.9.7e.tar.gz
#tar -zxf openssl-0.9.7e.tar.gz
#cd openssl-0.9.7e
#./Configure --prefix=/usr linux-pentium
#make
#make test
#make install
Now get the latest source from an official mirror:
#cd /usr/local/src
#wget http://ftp.belnet.be/packages/openbsd/Open...sh-3.9p1.tar.gz
#tar -xzf openssh-3.9p1.tar.gz
#cd openssh-3.9p1
#./configure --prefix=/usr --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/src/openssl-0.9.7e --with-pam
#make
#make install
#/sbin/service sshd restart
If you get a user error you need to add a sshd user. Do that by running this command:
#adduser sshd -s /sbin/nologin
If you don't get any error about a user you do not have to worry about adding the user.
Open another ssh window and make sure ssh works ok, if running the following command returns something with “OpenSSH_3.9p1” you did it correctly.
#sshd –V
Now go back and turn telnet on:
#pico -w /etc/xinetd.d/telnet
change disable = no to yes
Save and then exit
#/etc/init.d/xinetd restart
That’s it!