bclinux升级ssh_openssh-9.5文章来源:https://www.toymoban.com/news/detail-796242.html
资源下载:https://download.csdn.net/download/qq_41210783/88750470文章来源地址https://www.toymoban.com/news/detail-796242.html
#!/bin/bash
#
cp /etc/pam.d/sshd /etc/pam.d/sshd.bak >/dev/null 2>&1
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak >/dev/null 2>&1
cp /etc/pam.d/password-auth-ac /etc/pam.d/password-auth-ac.bak >/dev/null 2>&1
cp /usr/lib/systemd/system/sshd.service /usr/lib/systemd/system/sshd.service.bak >/dev/null 2>&1
service sshd stop >/dev/null 2>&1
rm -f /etc/ssh/ssh_host* >/dev/null 2>&1
rpm -Uvh ./openssh* >/dev/null 2>&1
cp /etc/pam.d/sshd.bak /etc/pam.d/sshd >/dev/null 2>&1
cp /etc/ssh/sshd_config.bak /etc/ssh/sshd_config >/dev/null 2>&1
service sshd start >/dev/null 2>&1
#mv /bin/scp /bin/bak.scp
ssh -V
到了这里,关于bclinux升级ssh openssh-9.5p1的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!