You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

OpenSSH 9.8p1下通过xinetd启动sshd失败,连接时报'需要使用绝对路径执行sshd'错误求助

OpenSSH 9.8p1下通过xinetd启动sshd失败,连接时报'需要使用绝对路径执行sshd'错误求助

大家好,我碰到了一个棘手的问题,想请各位帮忙看看:我在网关服务器上用xinetd来管理sshd服务,但是从我的Fedora 37虚拟机尝试ssh连接网关时,总是弹出 'sshd requires execution with an absolute path' 的错误,以下是详细信息:

网关的xinetd配置文件

我的sshd对应的xinetd配置是这样的:

service ssh
{
    instances       = 10
    socket_type     = stream
    wait            = no
    user            = root
    protocol        = tcp
    server          = /usr/local/sbin/sshd
    server_args     = -i
    disable         = no
}

版本信息

  • 网关服务器上的OpenSSH版本(执行ssh -V输出):
    OpenSSH_9.8p1, OpenSSL 3.0.14 4 Jun 2024
    
  • 本地Fedora 37虚拟机的OpenSSH版本:
    OpenSSH_8.8p1, OpenSSL 3.0.9 30 May 2023
    

具体错误日志

我执行ssh -vvv foo@g5-5时的详细输出片段:

$ ssh -vvv foo@g5-5
OpenSSH_8.8p1, OpenSSL 3.0.9 30 May 2023
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 58: Including file /etc/ssh/ssh_config.d/50-redhat.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf
debug2: checking match for 'final all' host g5-5 originally g5-5
debug3:...

备注:内容来源于stack exchange,提问作者follie2000

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 09:54:52