Troubleshooting for sshd service startup on SSH server in Linux

Source: Internet
Author: User
Tags ssh server

192.168.50.58:/usr #/usr/sbin/sshd


@
Warning: unprotected Private Key
File!
@

Permissions
0777 for '/usr/local/etc/ssh_host_rsa_key' are too open.
It is recommended
That your private key files are not accessible by others.
This private key
Will be ignored.
Bad permissions: Ignore key:
/Usr/local // etc/ssh_host_rsa_key
Cocould not load host key:
/Usr/local // etc/ssh_host_rsa_key

@
Warning: unprotected Private Key
File!
@

Permissions
0777 for '/usr/local/etc/ssh_host_dsa_key' are too open.
It is recommended
That your private key files are not accessible by others.
This private key
Will be ignored.
Bad permissions: Ignore key:
/Usr/local // etc/ssh_host_dsa_key
Cocould not load host key:
/Usr/local // etc/ssh_host_dsa_key
Disabling Protocol version 2. cocould not load
Host key
Sshd: No hostkeys available -- exiting.

Go to/usr/local/etc # to check whether the following files are available. These files are configuration files. If they are missing, a prompt is displayed. The above error is caused by permission issues of the following files.
MiniGUI. cfg ssh_host_dsa_key ssh_host_rsa_key sshd_config
Ssh_config ssh_host_dsa_key.pub ssh_host_rsa_key.pub
Set these files to 600.
192.168.50.58:/usr/local/etc # chmod 600 SSH *
Now you can start it.
/Usr/sbin/sshd

This is a standard permission Configuration:
-Rwxr-XR-x 1 Root 1554 Mar 21 ssh_config
-RW ------- 1 Root 668 Mar 21 :42 ssh_host_dsa_key
-RW-r -- 1 Root 609 Mar 21 10:42 ssh_host_dsa_key.pub
-RW ------- 1 Root 1679 Mar 21 10: 40 ssh_host_rsa_key
-RW-r -- 1 Root 401 Mar 21 :40 ssh_host_rsa_key.pub
-Rwxr-XR-x 1 Root 3177 Mar 21 sshd_config

Server, accessible, Private, files, Linux
related posts
  • setting up a Samba server in Ubuntu
  • an SSH client written in C #
  • how to enable the terminal and install SSH in the new Ubuntu version
  • securecrt background Black: The color of the terminal selected as Linux
  • Chen Weiping-embedded Linux cutting, Linux driver, circuit design, Single Chip Microcomputer Design, Single Chip Microcomputer Programming
  • remote debugging of Linux programs (mingw + GDB + slickedit + gdbserver) in windowns (to be improved):
  • Processing Method for attributes with generic nullable in propertyinfo during reflection
View More>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.