blfs(systemv版本)学习笔记-编译安装openssh软件包

openssh项目地址:http://www.linuxfromscratch.org/blfs/view/8.3/postlfs/openssh.html

1.下载openssh包和补丁并校验md5

wget https://mirror-hk.koddos.net/blfs/8.3/o/openssh-7.7p1.tar.gz

wget http://www.linuxfromscratch.org/patches/blfs/8.3/openssh-7.7p1-openssl-1.1.0-1.patch

md5sum -c md5sums

2.解压并进入openssh包目录

 tar -xvf openssh-7.7p1.tar.gz

cd openssh-7.7p1

3.参照书中说明编译安装

patch -Np1 -i ../openssh-7.7p1-openssl-1.1.0-1.patch &&

./configure --prefix=/usr                     \
            --sysconfdir=/etc/ssh             \
            --with-md5-passwords              \
            --with-privsep-path=/var/lib/sshd &&
make

make -j8 tests

make install &&
install -v -m755    contrib/ssh-copy-id /usr/bin     &&

install -v -m644    contrib/ssh-copy-id.1 \
                    /usr/share/man/man1              &&
install -v -m755 -d /usr/share/doc/openssh-7.7p1     &&
install -v -m644    INSTALL LICENCE OVERVIEW README* \
                    /usr/share/doc/openssh-7.7p1

4.返回blfs-sources目录并删除解压的包目录

cd $LFS/sources/blfs-sources

rm -rf openssh-7.7p1

5.配置openssh

echo "PermitRootLogin no" >> /etc/ssh/sshd_config

6.安装blfs脚本

make install-sshd

转载于:https://www.cnblogs.com/renren-study-notes/p/10281710.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值