bclinux升級ssh_openssh-9.5文章來源:http://www.zghlxwxcb.cn/news/detail-796242.html
資源下載:https://download.csdn.net/download/qq_41210783/88750470文章來源地址http://www.zghlxwxcb.cn/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
到了這里,關(guān)于bclinux升級ssh openssh-9.5p1的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!