首页 > 系统相关 >升级openssh后出现xshell、CRT等工具无法连接问题

升级openssh后出现xshell、CRT等工具无法连接问题

时间:2024-01-24 09:38:41浏览次数:28  
标签:CRT openssh required auth session so xshell include pam

描述:某工程在进行ssh漏洞修复过程中升级openssh后输入用户名密码被拒绝(如下图)通过带外重定向到操作系统发现日志出现PAM unable to dlopen和 PAM adding faulty module的报错

经排查发现是ssh rpm 包升级后会修改/etc/pam.d/sshd 文件(如下图)

和其他服务器对比,正常可登录的/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/pam.d/sshd文件,重启服务即可

标签:CRT,openssh,required,auth,session,so,xshell,include,pam
From: https://www.cnblogs.com/HByang/p/17983869

相关文章

  • SecureCRT、putty等远程工具连接openkylin
    一、配置服务器root@sky9890:~#apt-getinstallssh#安装root@sky9890:~#systemctlrestartsshroot@sky9890:~#vi/etc/ssh/ssh_config#配置......Port22#启用端口号,并可以修改端口数......二、问题描述SecureCRT、putty等远程工具连接openkylin报......
  • XShell利用X11转发图形化界面教程
    本文仅包含MobaXterm、XShell和PuTTY进行X11转发的教程,其他工具请自行摸索。以下所有步骤均为必要步骤!请确保你都有,主要就是一下几步。ssh免密登录安装xmingXShell/PuTTY设置如果你使用的是无图形化界面的服务器,那么你需要先安装X-windowsudoapt-getinstallxserver-xorgsudo......
  • openssh9.6 源码编译与交叉编译
    环境ubunut18.04。x86平台openssh9.6,这里我是要移植到别的机器。不是在本地使用所以我要编出两个版本x86和armubunutx86版本编译过程准备工作安装依赖库,可以通过apt包管理安装,也可以源码安装,我们这里需要zlib,openssl和pamlinux安装pam库centossudoyuminstall......
  • xshell配置隧道转移规则
    钢铁知识库,一个学习python爬虫、数据分析的知识库。人生苦短,快用python。xshell是什么通俗点说就是一款强大ssh远程软件,可以方便运维人员对服务器进行管理操作,功能很多朋友们自行探索,今天只聊其中一个功能点那就是隧道转发。隧道转移是什么xshell隧道转移到底是干嘛的,有什么作......
  • VC 编译crt不同版本,Debug/Release混用问题
    extern"C" int__CRTDECL_imp__swprintf( _Pre_notnull__Post_z_wchar_t*const_Buffer, _In_size_tconst_BufferCount, _In_z__Printf_format_string_wchar_tconst*const_Format, ...){ int_Re......
  • xshell
    目录Shell显示所在项目当前git分支及状态Shell显示所在项目当前git分支及状态在~/.bashrc最后添加如下内容functiongit_branch{ref=$(gitsymbolic-refHEAD2>/dev/null)||return;echo"("${ref#refs/heads/}")";}functionparse_git_dirty{loc......
  • openeuler2203升级openssh9.4p1解决漏洞问题
    openeuler2203升级openssh9.4p1解决漏洞问题 1,使用rpmbuild将tar包打成rpm包,不喜欢编译升级的,使用RPM升级就方便多了。想使用openssh的源码包编译安装的,参考这里:OpenSSH-9.4p1(linuxfromscratch.org) 2,准备编译环境[root@centos7-31~]#  yuminstallrpm-buildzlib......
  • SecureCRT & SecureFX 9.5 for macOS, Linux, Windows 下载 - 跨平台的多协议终端仿真
    SecureCRT&SecureFX9.5formacOS,Linux,Windows下载-跨平台的多协议终端仿真和文件传输请访问原文链接:SecureCRT&SecureFX9.5formacOS,Linux,Windows,查看最新版。原创作品,转载请保留出处。作者主页:sysin.orgSecureCRT客户端运行于Windows、Mac和Linux,将坚......
  • Xshell通过跳板机连接服务器
    一、GitSSH密钥生成1.打开命令行工具,输入以下命令:$ssh-keygen-trsa-C"[email protected]"其中,“-t”指定密钥类型,可以是“rsa”、“dsa”等;“-C”指定注释信息,一般为邮箱地址。2.生成密钥的存储路径:Whatisthefileinwhichtosavethekey?(/c/Users/you/.......
  • centos7.9(大部分都可以)和redhat6.9 离线升级OpenSSH和openssl (2023年的版本)
     ssl 红色。测试centos7.6也可以升级注意事项!1、多开几个连接窗口(xshell),避免升级openssh失败无法再次连接终端,否则要跑机房了。2、可开启telnet服务、vnc服务、打快照。多几个“保命”的路数。一、centos7.9的信息[root@node2~]#opensslversionOpenSSL1.0.2k-fips......