Linux服务器中OpenSSH的源码如何编译与升级?
Linux服务器中OpenSSH的源码如何编译与升级?
一。AS4 升级步骤 1。建议使用源码安装方式,下载安装包 cd /root wget -c "ftp://ftp。openbsd。org/pub/OpenBSD/OpenSSH/portable/openssh-5。0p1。tar。gz" tar zxvf openssh-5。
0p1。tar。gz cd openssh-5。0p1 2。升级请确认Zlib和OpenSSL的版本: openssh-5。0p1要求Zlib的版本在1。2。1。2以上,OpenSSL版本在0。9。6以上。下面是Zlib和 OpenSSL的官方地址: http://www。
gzip。org/zlib/ http://www。openssl。org/ 注意: OpenSSL 0。9。5a属于可接受的版本,但是在使用SSH protocol 1 时,一些加密功能可能会出现问题(出于安全考虑,建议使用SSH protocol 2)。
详见INSTALL文档。 3。编译常用的参数——prefix=和——sysconfdir=,省略以上参数,默认的ssh将安装在 /usr/local/bin下,sshd装在/usr/local/sbin,sftp-server装在/usr/local/libexec/sftp-server,配置文件在/usr/locale/etc下。
。/configure ——sysconfdir=/etc/ssh make make install 4。对比安装默认和当前配置文件,个别重要参数请务必修改 diff sshd_config /etc/ssh。bak/sshd_config 5。
配置文件推荐设置 确认/usr/local/libexec/sftp-server路径是否正确 6。
检查配置文件的正确性 grep -v ^# /etc/ssh/sshd_config | awk '{print $1}' | sort | uniq -d 是否有重复的行 /usr/local/sbin/sshd -t 参数是否正确。
答:您的概念不正确,什么叫“编译成linux源程序”? 源程序是您书写的可读的代码,源程序编译完了是执行文件。 如果你指的是C语言源程序怎样编译成Linux上的可执...详情>>