Use ssh without entering a password-putty version (Figure)

Source: Internet
Author: User
Article Title: Use ssh without entering a password-putty version (figure ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Many of my friends use putty to log on to Linux/Unix for management on windows.
  
I have previously written a post that uses ssh-keygen to generate public/private pairs for authentication in Linux without entering a password. many of my friends want to know how to make putty work like this. the younger brother is free these days and has a try. write down the steps for your reference only.
  
   1. generate public/private pairs.
  
Puttygen is enough. the interface (1) appears. select SSH2RSA and click Generate to Generate the (2) interface. in this process, you need to keep moving the mouse, because it seems to use this as the seed of the random number. click Save private key to Save the private key. the public key can be saved or not saved. select the blue part of (2. then ctrl + c is saved to the clipboard. log on to the host you want to access and open ~ /. Ssh/authorized_keys file, paste the stuff that was just saved to the clipboard. just save it.
  
   2. access.
  
This is a little more troublesome than Linux. because there is no default user name and the default home is useless, the following syntax is used for access.
  
Code:
Putty-I c: \ usr \ bin \ ssh-private.ppk-l wangzw 192.168.21.33
  
Among them, 192.168.21.33 is the host IP (host name can also be),-l wangzw is the user name,-I c: \ usr \ bin \ ssh-private.ppk is to specify which key to use for authentication.
  
This is done.
  
Because the entered syntax is too troublesome, the younger brother simply wrote a linux. bat file, which contains only the line. then, put the file on the desktop, and double-click the File to enter Linux.
  
What else does putty's description use pagnet to save the key? I did not take it into consideration. if you are interested, please take a look.
  
The above is for reference only. if you have any problems, please click it.
    
  
  
  
Related Article

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.