secureCRT连接服务器失败

1通过ps aux | grep ssh发现ssh服务没有启动

2尝试通过/etc/init.d/sshstart启动ssh服务不成功

3root@lee:/etc/ssh# grep ssh /var/log/syslog查看日志如下

Jun25 12:45:35 lee kernel: [ 9318.055538] init: ssh main process (4914)terminated with status 255

Jun25 12:45:35 lee kernel: [ 9318.055572] init: ssh main process ended,respawning

Jun26 09:08:22 lee kernel: [ 23.798398] init: ssh main process (1118)terminated with status 255

Jun26 09:08:22 lee kernel: [ 23.798415] init: ssh main process ended,respawning

Jun26 09:48:46 lee kernel: [ 2441.728027] init: ssh main process (4011)terminated with status 255

Jun26 09:48:46 lee kernel: [ 2441.728049] init: ssh main process ended,respawning4 4 4 root@lee:~# /usr/sbin/sshd .-Dd

/etc/ssh/sshd_config:line 15: Bad configuration option: AllowUsers:sang

/etc/ssh/sshd_config:terminating, 1 bad configuration options

5进入/etc/ssh/sshd_config文件,通过修改AllowUsers:sang中间的冒号为空格解决问题

你可能感兴趣的:(嵌入式linux应用开发)