Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the PuTTY SSH key generation tool puttygen.exe to generate the key.

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

The key type and number of bits generated according to the default when you generate a key on the OK,SSH-2 RSA,1024 bit, you need to move the mouse in the blank area to generate random data click to save the private key (you can not set password protection), do not generate the 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 pastes 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 # PubkeyAuthentication yes in / etc/ssh/sshd_config

# AuthorizedKeysFile .ssh / authorized_keys 3. Log in to your Linux server / VPS Putty → session with SSH certificate: fill in Putty → connection → data on server IP: fill in automatic login user name Putty → connection → SSH → authentication: select authentication private key file back to Putty → session: save the session, fill in a name and save it, next time you can log in directly by double-clicking the name, and log in immediately. 4. For security you need to cancel the password authentication method of SSH. Vim / etc/ssh/sshd_config add the following line for PasswordAuthentication no to restart the SSH service service sshd restart

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.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report