Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
V
virtualmachine
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
  • wiki
  • virtualmachine
  • Wiki
  • Centos7 升级openssh

Centos7 升级openssh

Last edited by 郑天保 Nov 27, 2018
Page history

CentOS 7.4 升级openssh

1. 下载源码包

wget http://mirror.aarnet.edu.au/pub/OpenBSD/OpenSSH/portable/openssh-7.9p1.tar.gz
tar -zxvf openssh-7.9p1.tar.gz

2. 安装

yum install gcc openssl-devel zlib-devel
cd openssh-7.9p1
./configure
make && make install

3. 配置

cp ./contrib/redhat/sshd.init /etc/init.d/sshd
chmod +x /etc/init.d/sshd
# 修改配置文件
cp sshd_config /etc/ssh/sshd_config
vim /etc/ssh/sshd_config
PermitRootLogin yes

# 修改启动文件
vim /etc/init.d/sshd
SSHD=/usr/sbin/sshd 为 SSHD=/usr/local/sbin/sshd
/usr/sbin/ssh-keygen -A 为 /usr/local/bin/ssh-keygen -A
在 "$SSHD $OPTIONS && success || failure"这一行上面加上一行 OPTIONS="-f /etc/ssh/sshd_config"

4. 重启服务

service sshd start
Clone repository
  • Centos7 升级openssh
  • Home
  • Kickstart pxe批量部署
  • Root帐号密码
  • 公司vpn
  • 公司内部dns
  • 公司内部ntp
  • 公司域名配置
  • 公司服务器地址
  • 帐号密码
More Pages
×

New Wiki Page

Tip: You can specify the full path for the new file. We will automatically create any missing directories.