QNAP TS-231 上ssh错误一例

执行ssh出现错误Privilege separation user sshd does not exist

sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin

[/etc/config] # /opt/etc/init.d/S40sshd start
starting sshd...
Could not load host key: /opt/etc/ssh/ssh_host_rsa_key
Could not load host key: /opt/etc/ssh/ssh_host_dsa_key
Could not load host key: /opt/etc/ssh/ssh_host_ecdsa_key
Could not load host key: /opt/etc/ssh/ssh_host_ed25519_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.


$ ssh-keygen -t rsa -f /opt/etc/ssh/ssh_host_rsa_key
$ ssh-keygen -t dsa -f /opt/etc/ssh/ssh_host_dsa_key
$ ssh-keygen -t ecdsa -f /opt/etc/ssh/ssh_host_ecdsa_key

$ ssh-keygen -t ed25519 -f /opt/etc/ssh/ssh_host_ed25519_key

看进程

[/opt] # ps -ef | grep ssh
7282 admin 992 S /usr/sbin/sshd -f /etc/ssh/sshd_config -p 220
8867 admin 816 S /opt/sbin/sshd

猜你喜欢

转载自blog.csdn.net/mi2006/article/details/84451935