In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "SSH certificate how to let Putty password-free login Linux", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "SSH certificate how to let Putty password-free login to Linux" it!
1. Use the PuTTY SSH key generation tool puttygen.exe to generate the key.
The key type and number of bits generated are OK,SSH-2 RSA,1024 bits by default.
When generating a key, you need to move your mouse over a blank area to generate random data.
Click Save Private key (password protection may not be set), do not generate public key, because the public key OpenSSH generated by PUTTY cannot be used.
Log in to the remote Linux server / VPS with 2.SSH password and create .ssh / authorized_keys.
Vim / .ssh/authorized_keys
Paste the public key content generated by puttygen.exe to ~ / .ssh/authorized_keys.
Note: the public key content is shown in the public key (P) approved by OpenSSH: below this line of characters.
As to why the file name is authorized_keys, you can find the following two lines in / etc/ssh/sshd_config
# PubkeyAuthentication yes
# AuthorizedKeysFile .ssh / authorized_keys
3. Log in to your Linux server / VPS with your SSH certificate
Putty → session: fill in the server IP
Putty → connection → data: fill in the automatic login user name
Putty → connection → SSH → Authentication: select the authenticated private key file
Go back to the Putty → session: save the session, fill in a name and save it. Next time, you can log in directly by double-clicking the name.
4. For security you need to cancel the password authentication method of SSH.
Vim / etc/ssh/sshd_config
Add the following line
PasswordAuthentication no
Restart the SSH service
Service sshd restart
Thank you for your reading, the above is the "SSH certificate how to let Putty password-free login Linux" content, after the study of this article, I believe you on the SSH certificate how to let Putty password-free login Linux this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.