Sunday, June 16, 2013

openssh server with openssl 1.0.1


Download openssl package from below step
apt-get install make gcc
tar -zxvf openssl-1.0.1.tar.gz                                                                      
cd openssl-1.0.1
./config shared && make && make install
ln -s /usr/local/ssl/bin/openssl /usr/bin/
openssl version


Now download openssh and zlib packages ..
wget ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-5.8p1.tar.gz
wget http://zlib.net/zlib-1.2.6.tar.gz
tar -zxvf zlib-1.2.6.tar.gz
cd zlib-1.2.6
./configure && make && make install
apt-get install libssl-dev
export LDFLAGS =”-lkrb5″
echo “/usr/local/ssl/lib/” >> /etc/ld.so.conf
ldconfig -v
groupadd sshd
useradd -g sshd sshd
tar -zxvf openssh-5.8p1.tar.gz
cd openssh-5.8p1
./configure –with-ssl-dir=/usr/local/ssl && make && make  install
sshd
netstat -ntlp
22 will be listening
Now your SSH server is up with openssl version 1.0.1

No comments:

Post a Comment