无法解决“ sshd.service无效”的错误

时间:2020-07-30 04:50:17

标签: docker jenkins yum openssh

我正在做Jenkins,为此,我编写了一个需要sshd服务的docker文件。 但是当我写sudo docker-compose up -d n时,它会返回

/bin/sh: /usr/sbin/sshd-keygen: No such file or directory
ERROR: Service 'remote_host' failed to build: The command '/bin/sh -c /usr/sbin/sshd-keygen' returned a non-zero code: 127

我尝试使用以下命令用yum安装opensshd-clients

yum -y install openssh-server openssh-clients

但是当我运行上述安装命令时,出现以下错误

There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>

我不知道发生了什么

0 个答案:

没有答案
相关问题