The server refused our key issue occurs when you log on to the putty certificate.

Source: Internet
Author: User

I did have a hard time searching materials on the Internet, but it was a bit difficult for beginners to understand.

I have encountered this problem today and want Baidu to make it clear.ArticleSort to the previous ones (^_^)

If the server is configured as a remote server, be careful not to blindly follow the information on the Internet. If you are not careful, you will not be able to connect to the server. You can only ask the IDC provider to help you solve the problem.

1.use puttygen.exe to generate a key. when the key is generated, move the cursor in the blank area under the progress bar. Why? It can be understood as random.

2. Save the private key. See the following picture.

3. Put the copied content in the. Ssh/authorized_keys file in the user directory. Use VI ~ /. Ssh/authorized_keys open and right-click it to go up. You can also use psftp to decide which one to use.

That's all. The most important thing is to copy it here. Do not make a mistake.

Remember one record. When you cannot connect with a certificate, do not set the passwordauthentication parameter to No. Otherwise, the game is over. Of course, if you are on the local machine, you can do this.

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.