In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to realize Putty automatic login to remote Linux host". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "how to achieve Putty automatic login remote Linux host" bar!
Log in to the Linux host first, and the specific process is as follows:
1. Generate public keys and keys
The code is as follows:
Verdana@hostname:~$ ssh-keygen-t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/ home/verdana/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in / home/verdana/.ssh/id_rsa.
Your public key has been saved in / home/verdana/.ssh/id_rsa.pub.
The key fingerprint is:
51:51:da:44:28:b5:83:de:d2:1e:60:4f:81:c9:f1:1a verdana@hostname.com
Note that passphrase is left blank.
two。 Append public key content to authorized_keys
The code is as follows:
# if authorized_keys already exists, skip the step of creating files with touch
Verdana@hostname:~/.ssh$ touch authorized_keys
Verdana@hostname:~/.ssh$ cat id_rsa.pub > > authorized_keys
3. Download the key and convert it to a format recognized by Putty
Putty does not recognize the key generated by the Linux host, so it needs to be converted with puttygen.exe.
A) use FTP software or other means to copy the generated key id_rsa to the client host, where my client is the Vista system
B) Open puttygen.exe, click: convert-> Import key-> Save key (e.g. id_rsa.ppk), and the key conversion is completed. Password protection is not set here.
4. Set up Putty
Open Putty
A) session, enter the host name: user@remote-host,user is your Linux host login name, remote-host is IP or remote host domain name, such as: root@phpvim.net.
B) Connect-> SSH- > Authentication-> browse, select the converted key (id_rsa.ppk), and then save the session.
5. Use Cygwin?
If you log in to the remote server using Cygwin's ssh, you only need to copy the key id_rsa generated in step 3 (without any conversion) to the Cygwin user's .ssh directory.
At this point, I believe that everyone on "how to achieve Putty automatic login remote Linux host" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.