mkdir/mnt/cdrom
mount/dev/cdrom /mnt/cdrom
Vi/etc/yum.repos.d/yum.repo
[ local]
Name=local
Baseurl=file:///mnt/cdrom/Server
Enabled=1
Gpgcheck=0
Yum install gcc*
[ root@CentOS tmp]# service sshd stop
Stopping sshd: [ OK ]
[ root@CentOS tmp]# rpm -qa openssh
openssh-5.3p1-94.el6.x86_64
[ root@CentOS tmp]# rpm -e --nodeps openssh-server
[ root@CentOS tmp]# rpm -e --nodeps openssh-clients
[ root@CentOS tmp]# rpm -e --nodeps openssh-askpass
[ root@CentOS tmp]# rpm -e--nodeps openssh
[ root@CentOS tmp]# rm -rf /etc/ssh
リブート! ! !
[ root@CentOS tmp]# tar -xvf zlib-1.2.8.tar.gz
[ root@CentOS tmp]# cd zlib-1.2.8
[ root@CentOS zlib-1.2.8]# ./configure --prefix=/usr/local/zlib &&make && make install
. /config --prefix=/usr/local/openssl && make && make install
. /configure--prefix=/usr/ --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/openssl--with-zlib=/usr/local/zlib --with-md5-passwords --without-hardening &&make && make install
[ [email protected]]# cp contrib/redhat/sshd.init /etc/init.d/sshd
[ [email protected]] #chmod + x / etc / init.d / sshdには通常x個の権限が付属しています
ファイルを変更する必要はありません
[ [email protected]]#rpm -qa openssh
openssh-5.3p1-122.el6.x86_64
[ [email protected]]# chkconfig --add sshd
[ [email protected]]# service sshd start
ssh-V資本に注意を払う
OpenSSH_6.6p1, OpenSSL 1.0.1e-fips 11 Feb 2013
Recommended Posts