我正在尝试启动 sshd 但我收到一个错误消息
sshd: unrecognized service
Run Code Online (Sandbox Code Playgroud)
但是,似乎 sshd 安装正确(?)
# rpm -qa | grep ssh
libssh2-1.4.2-2.el6_7.1.x86_64
openssh-5.3p1-117.el6.x86_64
openssh-clients-5.3p1-117.el6.x86_64
# which sshd
/usr/sbin/sshd
Run Code Online (Sandbox Code Playgroud)
我需要做些什么才能让服务识别 sshd?我在 /etc 中也看到了这个
# ls /etc/ssh
moduli sshd_config ssh_host_key ssh_host_rsa_key.pub
ssh_config ssh_host_dsa_key ssh_host_key.pub
sshd-banner ssh_host_dsa_key.pub ssh_host_rsa_key
Run Code Online (Sandbox Code Playgroud)