OpenSSH_7.4p1, OpenSSL 1.0.2k-fips Unsupported Match attribute final /etc/ssh/ssh_config.d/05-redhat.conf line 3: Bad Match condition
时间: 2024-02-01 08:02:46 浏览: 285
根据您提供的信息,您正在使用 OpenSSH 7.4p1 版本,并且遇到了 "Unsupported Match attribute final" 的错误消息。这通常是由于旧的Match条件不再被支持而导致的。
在OpenSSH 7.4p1版本中,`Match final` 条件已被弃用,因此您需要将 `/etc/ssh/ssh_config.d/05-redhat.conf` 文件中的 `Match final` 条件更新为其他条件。例如,您可以使用 `Match exec` 条件来代替 `Match final` 条件。您可以将配置文件更新为以下内容来解决这个问题:
```
# Original configuration with "Match final" condition
Match final sshd_config_local
# Updated configuration with "Match exec" condition
Match exec "/usr/bin/test -f /etc/ssh/sshd_config_local && /usr/bin/test `stat -c %U /etc/ssh/sshd_config_local` = root"
```
请注意,这只是一个示例,您需要根据您的实际情况进行修改。如果您需要更多帮助,请告诉我。
相关问题
Unsupported Match attribute final /etc/ssh/ssh_config.d/05-redhat.conf line 3: Bad Match condition
这个错误通常是由于OpenSSH版本升级后,旧的Match条件不再被支持而导致的。
您需要检查 `/etc/ssh/ssh_config.d/05-redhat.conf` 文件的第3行及其附近的Match条件。在较新的OpenSSH版本中,Match条件的支持已经发生了一些变化,因此旧的Match条件可能会导致这个错误。您可以将旧的Match条件更新为新的格式,或者删除它们,以解决这个问题。
如果您不确定如何更新Match条件,请提供更多的信息,例如您正在使用的操作系统和OpenSSH版本,我将尽力提供更多的帮助。
ubuntu22.04安装OpenSSH_7.4p1, OpenSSL 1.0.2k
首先需要澄清,你提到的OpenSSH_7.4p1 和 OpenSSL 1.0.2k 是较旧版本的软件,Ubuntu 22.04 自带的 OpenSSH 版本应该会更新一些。但是如果你有特殊需求必须安装这些特定版本,可以尝试以下步骤来安装:
1. 更新软件包列表和系统:
```bash
sudo apt update && sudo apt upgrade -y
```
2. 导入所需的PPA(如果你要安装的是较新的OpenSSH版本)或者添加相应的软件源。但针对你提到的版本,你可能需要手动下载相应的软件包,因为这些软件包可能不再被官方源支持。
3. 下载OpenSSH_7.4p1 和 OpenSSL 1.0.2k 的 deb 包。可以从Ubuntu的老版本软件包库或者可信的第三方源获取。
4. 安装下载的 deb 包:
```bash
sudo dpkg -i openssh-server_7.4p1-10ubuntu1_amd64.deb
sudo dpkg -i openssl_1.0.2k-1ubuntu4.4_amd64.deb
```
(注意替换文件名中的版本号,以匹配你下载的包的实际文件名)
5. 如果安装过程中出现了依赖问题,可以使用以下命令修复:
```bash
sudo apt install -f
```
请注意,安装老版本的软件可能会引起安全和兼容性问题,因为老版本可能不再接受安全更新,也可能与新版本的操作系统不完全兼容。
阅读全文
相关推荐
![-](https://img-home.csdnimg.cn/images/20241231044955.png)
![-](https://img-home.csdnimg.cn/images/20250102104920.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![jar](https://img-home.csdnimg.cn/images/20210720083455.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![tar](https://img-home.csdnimg.cn/images/20250102104920.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![tgz](https://img-home.csdnimg.cn/images/20250102104920.png)