Linux (mac) ssh cannot generate key error handling

Source: Internet
Author: User
/Etc/ssh/ssh_host_dsa_key. I don't have this file. all the items are in front of the more/etc/ssh/sshd_config file. # try to change it, and restart inetd is invalid. it seems that most of the users do not want to automatically generate the file before the configuration problem. if it fails, check the manual % ssh-keygen-tdsa and press enter, by default, a key pair is stored in ~ /. Ssh/id_dsa # cp ~

/Etc/ssh/ssh_host_dsa_key. I don't have this file.

More/etc/ssh/sshd_config #
Try to change the value and restart inetd.
It does not seem that most users have configuration problems.
I want to automatically generate this file before, but failed.

I checked the manual again.
% Ssh-keygen-t dsa
Press Enter. by default, a key pair is placed ~ /. Ssh/id_dsa
# Cp ~ /. Ssh/id_dsa/etc/ssh/ssh_host_dsa_key
Inetd-HUP
Try again, OK

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.