# 下载OpenSSL wget https://www.openssl.org/source/openssl-3.0.8.tar.gz # 解压 tar -zxvf openssl-3.0.8.tar.gz cd openssl-3.0.8 # 配置 ./config --prefix=/usr/ --openssldir=/usr/ shared # 编译安装 make && make install # 查看版本 openssl version -a
问题:Can't locate IPC/Cmd.pm in @INC (@INC contains:
vi /etc/ssh/sshd_config编辑sshd_config文件添加UsePAM yes
然后vi /etc/pam.d/sshd添加如下内容:
1 2 3 4 5 6 7 8 9 10 11 12 13
#%PAM-1.0 auth required pam_sepermit.so auth include password-auth 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 optional pam_keyinit.so force revoke session include password-auth
问题:Permissions 0640 for '/etc/ssh/ssh_host_rsa_key' are too open.