当前位置: 首页 > wzjs >正文

做电商网站百度入口网站

做电商网站,百度入口网站,wordpress如何导出数据字典,东莞南城网站开发公司由于外网服务器扫描出SSH高危漏洞,需要升级SSH版本。 一、新版本SSH下载:https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/ 解压、编译配置(注意正确配置openssl路径)、编译、安装: tar -zxvf openssh-10.0p1.tar.gzcd openssh-10.0…

由于外网服务器扫描出SSH高危漏洞,需要升级SSH版本。

一、新版本SSH下载:https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/ 解压、编译配置(注意正确配置openssl路径)、编译、安装:

tar -zxvf openssh-10.0p1.tar.gzcd openssh-10.0p1./configure --prefix=/usr/local/openssh --with-ssl-dir=/usr/local/openssl341 --sysconfdir=/etc/ssh --with-pam --with-gssapi --with-rsa --with-rhosts-allowed --with-zlib --with-md5-passwordsmake && make install

在configure openssh时,有参数 --with-pam,会提示:
PAM is enabled. You may need to install a PAM control file for sshd, otherwise password authentication may fail. Example PAM control files can be found in the contrib/subdirectory
就是如果启用PAM,需要有一个控制文件,按照提示的路径找到redhat/sshd.pam,并复制到/etc/pam.d/sshd,在/etc/ssh/sshd_config中设置UsePAM yes。
/etc/pam.d/sshd中内容如下:

# 文件内容如下
#%PAM-1.0
auth	   required	pam_sepermit.so
auth       substack     password-auth
auth       include      postlogin
# Used with polkit to reauthorize users in remote sessions
-auth      optional     pam_reauthorize.so prepare
account    required     pam_nologin.so
account    include      password-auth
password   include      password-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open env_params
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      password-auth
session    include      postlogin
# Used with polkit to reauthorize users in remote sessions
-session   optional     pam_reauthorize.so prepare

/etc/ssh/sshd_config 中设置UsePAM yes

二、替换原openssh
1、备份替换相关文件

mv /usr/sbin/sshd /usr/sbin/sshd_bak
mv /usr/bin/ssh /usr/bin/ssh_bak
mv /usr/bin/ssh-keygen /usr/bin/ssh-keygen_bak

2、建立软连接

ln -s /usr/local/openssh/sbin/sshd /usr/sbin/sshd //建立软连接
ln -s /usr/local/openssh/bin/ssh /usr/bin/ssh //建立软连接
ln -s /usr/local/openssh/bin/ssh-keygen /usr/bin/ssh-keygen //建立软连接

或复制文件

cp -rf /usr/local/openssh/sbin/sshd /usr/sbin/sshd
cp -rf /usr/local/openssh/bin/ssh /usr/bin/ssh
cp -rf /usr/local/openssh/bin/ssh-keygen /usr/bin/ssh-keygen

三、修改配置:
解决root不能远程SSH登录问题(如果不需要root帐户登陆不用配置)

1、注释/etc/pam.d/password-auth或/etc/pam.d/password-auth-ac中
#auth        requisite     pam_succeed_if.so uid >= 1000 quiet_success

2、设置/etc/ssh/sshd_config 中PermitRootLogin yes

四、重启ssh服务:
systemctl restart sshd
如果重启报错Permissions 0640 for’/etc/ssh/*****.key’ are too open.

为文件的权限设置过于宽松执行

chmod -R 600 /etc/ssh

限制权限后再重启ssh服务解决
查询服务状态:

systemctl status sshd.service

正常运行,升级成功!!!
备注帐户解锁:
sudo passwd -u root
参考资料:
解决Linux系统Root不能远程SSH登录_linux ssh无法远程登录-CSDN博客

解决 OpenSSH开启 PAM后 root用户无法远程登录问题_failed password for root from-CSDN博客

解决openssh,openssl升级出现的坑_pam is enabled. you may need to install a pam cont-CSDN博客

启用UsePAM后用户登录失败_pam is enabled. you may need to install a pam cont-CSDN博客

openssl升级后开启UsePAM登录失败 - 焦国峰的随笔日记 - 博客园

linux环境openssl、openssh升级_openssl升级-CSDN博客

[SSH] Permissions 0644 for ‘.ssh/id_rsa‘ are too open._permissions 0644 for are too open-CSDN博客

key are too open_百度知道

磐维数据库openSSH 8.0到openSSH 9.3 - 墨天轮

docker启动sshd报错Could not load host key: /etc/ssh/ssh_host_rsa_key和Permissions 0640 for ‘/etc/ssh/ssh__docker could not load host key-CSDN博客

Linux系统下SSH服务启动失败故障处理_unit sshd.service entered failed state-CSDN博客

http://www.dtcms.com/wzjs/54561.html

相关文章:

  • vi设计征集广州seo公司哪个比较好
  • 做网站找哪个软件买友情链接有用吗
  • 产品做优化好还是超级网站好重庆百度推广优化排名
  • 上海市建设交通工会网站推广技巧
  • 怎么建网站教程视频保定seo推广
  • 赣州做网站什么价格建站模板免费下载
  • 网络营销 网站建设搜索引擎营销的步骤
  • 做设计的地图网站深圳seo排名优化
  • 在线流程图网站怎么做开发网站建设
  • 北京医疗机构网站前置审批需要的材料有哪些注册百度账号
  • 做婚庆的网站产品推销
  • 做订单管理网站用什么软件百度竞价点击一次多少钱
  • 有专门做消除网站上对公司不利的新站seo优化快速上排名
  • 猎头公司猎头大连seo优化
  • 国外设计模板网站媒体135网站
  • 做网站模板的海报尺寸多少上海关键词优化外包
  • php开发大型网站开发seo站内优化教程
  • 广州网络推广服务商百度竞价优化软件
  • 关于图书网站建设的书籍在线培训平台有哪些
  • 佛山疫情最新动态seo排名诊断
  • dede网站主页打不开网络营销的seo是做什么的
  • 大连b2c网站建设搜狗推广效果好吗
  • 深圳 手机网站建设杭州网站优化多少钱
  • 龙岗区网站建设公司搭建网站
  • 简述网站规划的主要任务成都网站搜索排名优化公司
  • 网站建设公司推广广告语百度竞价推广属于什么广告
  • 嘉兴 网站制作百度知道灰色词代发收录
  • 卡密网站怎么做怎样通过网络销售自己的产品
  • 网站开发基础知识企业员工培训课程
  • iis网站权限配置营销计划