系統(tǒng)大全為您提供查詢是否安裝telnet?#?rpm-qa|greptelnet?telnet-server-0.17-31.EL4.5?telnet-0.17-31.EL4.5??打開telnet服務(wù)?修改設(shè)置文件/etc/xinetd.d/telnet中disable字段改為no。?啟動服務(wù)#ntsysv或#servicexinetdrestart。?創(chuàng)建登陸用戶?因為不能直接roottelnet登陸,所以創(chuàng)建一個登陸用戶.安轉(zhuǎn)完成后可以把該用戶刪除?useraddopensshinstall?(刪除用戶及/home/sshinstall目錄?userdel-rsshinstall?刪除這個用戶的組groupdelsshinstall)??安裝源文件在/usr/local/zlib和openssl安裝在/usr/local目錄下??安裝zlib-1.2.5?#tar-zxvfzlib-1.2.5.tar.gz?#cdzlib-1.2.5?#./configure--prefix=/usr/local/zlib-1.2.5-share?#make?#maketest?#makeinstall?cplibz.a/usr/local/zlib-1.2.5/lib?cplibz.so.1.2.5/usr/local/zlib-1.2.5/lib?cd/usr/local/zlib-1.2.5/lib;chmodu=rw,go=rlibz.a?cpzlib.3/usr/local/zlib-1.2.5/share/man/man3?chmod644/usr/local/zlib-1.2.5/share/man/man3/zlib.3?cpzlib.pc/usr/local/zlib-1.2.5/lib/pkgconfig?chmod644/usr/local/zlib-1.2.5/lib/pkgconfig/zlib.pc?cpzlib.hzconf.h/usr/local/zlib-1.2.5/include?chmod644/usr/local/zlib-1.2.5/include/zlib.h/usr/local/zlib-1.2.5/include/zconf.h?#vi/etc/ld.so.conf??配置庫文件搜索路徑?includeld.so.conf.d/*.conf?##add2010.7.7?/usr/local/zlib-1.2.5/lib?##addend?#ldconfig-v???刷新緩存文件/etc/ld.so.cache?#ln-s/usr/local/zlib-1.2.5/usr/local/zlib???安裝openssl?#cd/usr/local/#tarzxvfopenssl-1.0.0a.tar.gz?#cdopenssl-1.0.0a?#./configsharedzlib-dynamic--prefix=/usr/local/openssl-1.0.0a--with-zlib-lib=/usr/local/zlib-1.2.5/lib--with-zlib-include=/usr/local/zlib-1.2.5/include?#make?#maketest(這一步是進行SSL加密協(xié)議的完整測試,如果出現(xiàn)錯誤就要一定先找出原因,否則一味繼續(xù)可能導(dǎo)致SSH不能使用!)?#makeinstall?#vi/etc/ld.so.conf???配置庫文件搜索路徑?############################################?##addbelowlinetold.so.conf?/usr/local/openssl-1.0.0a/lib??????????64位OS沒有生成lib目錄,是lib64目錄?############################################?#ldconfig-v???刷新緩存文件/etc/ld.so.cache?#ln-s/usr/local/openssl-1.0.0a/usr/local/openssl?vi/etc/profile?###########################################?(addtoendofthefile)?PATH=/usr/local/openssl/bin:$PATH?exportPATH?###########################################??退出,再登錄,查看openssl的版本號,以驗正是否安裝正確?#opensslversion-a?OpenSSL1.0.0a1Jun2010?builton:WedJul?717:08:07CST2010?platform.linux-x86_64?options:?bn(64,64)rc4(1x,char)des(idx,cisc,16,int)idea(int)blowfish(idx)?compiler:gcc-fPIC-DOPENSSL_PIC-DZLIB_SHARED-DZLIB-DOPENSSL_THREADS-D_REENTRANT-DDSO_DLFCN-DHAVE_DLFCN_H-m64-DL_ENDIAN-DTERMIO-O3-Wall-DMD32_REG_T=int-DOPENSSL_IA32_SSE2-DOPENSSL_BN_ASM_MONT-DSHA1_ASM-DSHA256_ASM-DSHA512_ASM-DMD5_ASM-DAES_ASM-DWHIRLPOOL_ASM?OPENSSLDIR:"/usr/local/openssl-1.0.0a/ssl"????停止并卸載Openssh?1.停止OpenSSH服務(wù)?#servicesshdstop?2.查詢并卸載openssh?#rpm-qa|grepopenssh?openssh-3.9p1-8.RHEL4.24?openssh-askpass-3.9p1-8.RHEL4.24?openssh-clients-3.9p1-8.RHEL4.24?openssh-server-3.9p1-8.RHEL4.24?openssh-askpass-gnome-3.9p1-8.RHEL4.24?#rpm-eopenssh-3.9p1-8.RHEL4.24--nodeps?#rpm-eopenssh-clients-3.9p1-8.RHEL4.24--nodeps?警告/etc/ssh/ssh_config已存為/etc/ssh/ssh_config.rpmsave?#rpm-eopenssh-askpass-3.9p1-8.RHEL4.24?#rpm-eopenssh-server-3.9p1-8.RHEL4.24?--nodeps?#rpm-eopenssh-askpass-gnome-3.9p1-8.RHEL4.24?cd/usr/local/tarzxvfopenssh-5.5p1.tar.gz?cd?openssh-5.5p1?./configure--prefix=/usr--sysconfdir=/etc/ssh--with-pam--with-ssl-dir=/usr/local/openssl-1.0.0a--with-md5-passwords--mandir=/usr/share/man--with-zlib=/usr/local/zlib-1.2.5?#make?#makeinstall?#?將sshd加入啟動服務(wù):?進入ssh安裝解壓目錄?#cp./contrib/redhat/sshd.init/etc/init.d/sshd?#chmod+x/etc/init.d/sshd?#chkconfig--addsshd?最后,啟動SSH服務(wù)使修改生效:?#servicesshdstart?重啟后確認一下當(dāng)前的OpenSSH和OpenSSL是否正確:?#ssh-v?如果看到了新的版本號就沒問題啦!?關(guān)閉telnet服務(wù)?修改設(shè)置文件/etc/xinetd.d/telnet中disable字段改為yes。?啟動服務(wù)#ntsysv或#servicexinetdrestart。?注意問題?1.在安裝openssh,./configure時,報下面錯誤:?configure:error:PAMheadersnotfound?運行#rpm-qa|greppam???pam_smb-1.1.7-5???pam_ccreds-1-3???pam_passwdqc-0.7.5-2???pam-0.77-66.17???pam_krb5-2.1.8-1???spamassassin-3.0.6-1.el4?發(fā)現(xiàn)有pam-0.77-66.17,從網(wǎng)上找到pam-devel-0.77-66.17.i386.rpm,?運行rpm-ivhpam-devel-0.77-66.17.i386.rpm后,./configure正常?版本號0.77-66.17必須一樣。?2.在安裝openssh時,configure報錯:?./configure--prefix=/usr--sysconfdir=/etc/ssh--with-pam--with-zlib--with-ssl-dir=/usr/include/openssl--with-md5-passwords--mandir=/usr/share/man?.....?configure:error:***zlibtooold-checkconfig.log***?YourreportedzlibversionhaskNownsecurityproblems.?It'spossibleyour?vendorhasfixedtheseproblemswithoutchangingtheversionnumber.?Ifyou?aresurethisisthecase,youcandisablethecheckbyrunning?"./configure--without-zlib-version-check".?Ifyouareindoubt,upgradezlibtoversion1.2.3orgreater.?Seepilerflags:-g-O2-Wall-Wpointer-arith-Wuninitialized-Wsign-compare-Wformat-security-fno-builtin-memset-std=gnu99?Preprocessorflags:-I/usr/local/openssl-1.0.0a/include-I/usr/local/zlib-1.2.5/include????Linkerflags:-L/usr/local/openssl-1.0.0a/lib-L/usr/local/zlib-1.2.5/lib??????Libraries:-lresolv-lcrypto-ldl-lutil-lz-lnsl?-lcrypt??????+forsshd:?-lpam?PAMisenabled.YoumayneedtoinstallaPAMcontrolfile?forsshd,otherwisepasswordauthenticationmayfail.?ExamplePAMcontrolfilescanbefoundinthecontrib/?subdirectory以上就是系統(tǒng)大全給大家介紹的如何使的方法都有一定的了解了吧,好了,如果大家還想了解更多的資訊,那就趕緊點擊系統(tǒng)大全官網(wǎng)吧。本文來自系統(tǒng)大全http:///如需轉(zhuǎn)載請注明!推薦:win7純凈版