0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【備忘録】OpenSSH9.8へのアップデート

Posted at

脆弱性があったので9.8p1にアップデートします
https://security.sios.jp/vulnerability/openssh-security-vulnerability-20240701/

環境

rhel8.8
OpenSSH 9.6p1

手順

①サーバーのバックアップを取得

何かあっても戻せるようにしておきます

②sshdプロセス停止

systemctl stop sshd
systemctl status sshd

→停止を確認

③wgetインストール

yum install wget

④OpenSSHアップデート(今回は9.8へ)

以下サイトから必要なものを
https://rpmfind.net/linux/rpm2html/search.php?query=openssh&submit=Search+...&system=&arch=
https://rpmfind.net/linux/rpm2html/search.php?query=openssh-clients&submit=Search+...&system=&arch=
https://rpmfind.net/linux/rpm2html/search.php?query=openssh-server&submit=Search+...&system=&arch=

cd /home/ec2-user/openssh/OpenMandriva/openssh/
wget https://rpmfind.net/linux/openmandriva/cooker/repository/x86_64/main/release/openssh-9.8p1-1-omv2490.x86_64.rpm
wget https://rpmfind.net/linux/openmandriva/cooker/repository/x86_64/main/release/openssh-clients-9.8p1-1-omv2490.x86_64.rpm
wget https://rpmfind.net/linux/openmandriva/cooker/repository/x86_64/main/release/openssh-server-9.8p1-1-omv2490.x86_64.rpm
yum install openssh-9.8p1-1-omv2490.x86_64.rpm  openssh-clients-9.8p1-1-omv2490.x86_64.rpm  openssh-server-9.8p1-1-omv2490.x86_64.rpm

⑤sshd再起動

systemctl daemon-reload
systemctl start sshd
systemctl status sshd

→起動を確認

⑥バージョン確認

ssh -V
rpm -qa |grep openssh

→9.8であることを確認

⑦動作確認

・ サーバを再起動してSSH接続できること
・ 他のサーバに対してSSH接続できること
・ /etc/ssh/sshd_configファイルが変更されていないこと

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?