Remote connection and key authentication for putty and Xshell

Source: Internet
Author: User

Remote connection software: Putty and Xshell

Putty

Https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Download: Putty.zip

Xshell Baidu search Download.

After downloading the installation.

One, Putty remote connection

1. Enter the remote host IP address or host name

Enter the port number (the default remote host is 22 and you do not need to modify it.) If the remote host is not 22, modify the port number to be the same as the remote host. )

Enter the saved name and click "Save" to save.

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/A7/74/wKioL1nm602R-E9EAABaYwdYSwg514.png-wh_500x0-wm_ 3-wmp_4-s_2875400797.png "title=" clipboard (6). png "alt=" wkiol1nm602r-e9eaabaywdyswg514.png-wh_50 "/>

You can set the number of lines of code displayed in lines of Scrollback in Windows. Fonts can be set in appearance.

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/08/C4/wKiom1nm7iDT_pgrAAAmBmwxqsQ788.png-wh_500x0-wm_ 3-wmp_4-s_3206369835.png "title=" clipboard (5). png "alt=" wkiom1nm7idt_pgraaambmwxqsq788.png-wh_50 "/>


2, click on the "open", there will be the following this hint, point "yes" on the line.

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/A7/74/wKioL1nm63yBYZg6AAA-33EWyp4383.png-wh_500x0-wm_ 3-wmp_4-s_1288526592.png "title=" clipboard (7). png "alt=" wkiol1nm63ybyzg6aaa-33ewyp4383.png-wh_50 "/>

Enter your account password to log into the system

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/08/C4/wKiom1nm7kWw-XdUAAATsC4wRJ0991.png-wh_500x0-wm_ 3-wmp_4-s_1372880771.png "title=" clipboard (8). png "alt=" wkiom1nm7kww-xduaaatsc4wrj0991.png-wh_50 "/>


Second, Xshell remote connection

1. New session

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/08/C4/wKiom1nm7lyRbHnMAAArSXjR9oA477.png-wh_500x0-wm_ 3-wmp_4-s_3152590974.png "title=" clipboard (1). png "alt=" wkiom1nm7lyrbhnmaaarsxjr9oa477.png-wh_50 "/>


2, enter the name, host IP, port number.

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/08/C4/wKiom1nm7m6SHfmfAABSX-FVweM460.png-wh_500x0-wm_ 3-wmp_4-s_1695723655.png "title=" clipboard (3). png "alt=" wkiom1nm7m6shfmfaabsx-fvwem460.png-wh_50 "/>


3, click OK → connect, and then enter the user name and password to enter the system

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/A7/74/wKioL1nm69agiEFvAAAf7BXMMng133.png-wh_500x0-wm_ 3-wmp_4-s_3648875212.png "style=" Float:none; "title=" clipboard (2). png "alt=" WKIOL1NM69AGIEFVAAAF7BXMMNG133.PNG-WH _50 "/>

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/A7/74/wKioL1nm69aR0UoeAABOAjSoKk0096.png-wh_500x0-wm_ 3-wmp_4-s_1318635421.png "style=" Float:none; "title=" clipboard (4). png "alt=" WKIOL1NM69AR0UOEAABOAJSOKK0096.PNG-WH _50 "/>

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/08/C4/wKiom1nm7pyi3Y_5AAAHbQSA_aE321.png-wh_500x0-wm_ 3-wmp_4-s_101187964.png "title=" Clipboard.png "alt=" Wkiom1nm7pyi3y_5aaahbqsa_ae321.png-wh_50 "/>



Third, Putty key authentication

1, open the application PUTTYGEN. Exe

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/08/C4/wKiom1nm7u_h9_-VAABCztOIbHo916.png-wh_500x0-wm_ 3-wmp_4-s_4050145195.png "title=" clipboard (8). png "alt=" wkiom1nm7u_h9_-vaabcztoibho916.png-wh_50 "/>


2, click the Generate button "Generate". After you click on the window to shake the mouse, do not move the mouse progress bar will be particularly slow.

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/08/C4/wKiom1nm7wGB9VsdAABBqqU3wvU864.png-wh_500x0-wm_ 3-wmp_4-s_1004225711.png "title=" clipboard (a). png "alt=" wkiom1nm7wgb9vsdaabbqqu3wvu864.png-wh_50 "/>


3. Key generation is successful and key file is saved.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/A7/74/wKioL1nm7FuwnxN3AACE6WBclWI059.png "title=" Clipboard. png "alt=" Wkiol1nm7fuwnxn3aace6wbclwi059.png "/>


4. Create a new key file and close the SELinux firewall

Mkdir/root/.ssh #创建目录

chmod 700/root/.ssh #给目录分配权限

Vi/root/.ssh/authorized_keys #在上面创建的目录下创建密钥文件. Then paste the public key in. Save exit.

Setenforce 0 #关闭selinux Firewall

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/08/C4/wKiom1nm7yLyFm_WAAAXYTlnh9M592.png-wh_500x0-wm_ 3-wmp_4-s_663506485.png "title=" clipboard (Ten). png "alt=" wkiom1nm7ylyfm_waaaxytlnh9m592.png-wh_50 "/>


5, Configuration Putty

Select the virtual machine that you just had, point to load. Then point Ssh→auth.

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/A7/74/wKioL1nm7IKT5WZmAABuPI6uOMo249.png "title=" Clipboard (one). png "alt=" Wkiol1nm7ikt5wzmaabupi6uomo249.png "/>

Loads the private key. Locate the private key location that you just saved.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/08/C4/wKiom1nm712ikF66AAAXUxlNOMA867.png "title=" Clipboard (5). png "alt=" Wkiom1nm712ikf66aaaxuxlnoma867.png "/>

then click on the session and save .


6, click Open Window, to the login screen. Enter the user name and the password login system that was set when the key was just generated.

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/A7/74/wKioL1nm7L6zt2QsAAAcvSY4R5g416.png "title=" Clipboard (7). png "alt=" Wkiol1nm7l6zt2qsaaacvsy4r5g416.png "/>


Iv. Xshell Key Verification

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/08/C4/wKiom1nm75LzBllYAAAzDhnl4Yc309.png "title=" Clipboard (2). png "alt=" Wkiom1nm75lzbllyaaazdhnl4yc309.png "/>

Key type RSA, the longer the key length, the harder it is to crack. (By default) click Next.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/08/C4/wKiom1nm76azt1zrAACKxhbX6Ds987.png "title=" Clipboard. png "alt=" Wkiom1nm76azt1zraackxhbx6ds987.png "/>

Click Next

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/08/C4/wKiom1nm77eS3f9fAACFGaffveY388.png "title=" Clipboard (3). png "alt=" Wkiom1nm77es3f9faacfgaffvey388.png "/>

Enter the key name and password and click Next

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/08/C4/wKiom1nm78jxW_G1AACKgjwQ4qs026.png "title=" Clipboard (4). png "alt=" Wkiom1nm78jxw_g1aackgjwq4qs026.png "/>

Copy the public key into the Linux/root/.ssh/authorized_keys documentation. Save exit.

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/08/C4/wKiom1nm7-eggs2MAACr5-c_Vuc511.png "title=" Clipboard (1). png "alt=" Wkiom1nm7-eggs2maacr5-c_vuc511.png "/>

Click Close.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/08/C4/wKiom1nm7_eCPqLhAAAYLbo8n6c766.png "title=" Clipboard (6). png "alt=" Wkiom1nm7_ecpqlhaaaylbo8n6c766.png "/>

Open Xshell Session Select Host, point properties.

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/A7/74/wKioL1nm7VHRqeldAAA6P_06fYQ169.png "title=" Clipboard.png "alt=" Wkiol1nm7vhrqeldaaa6p_06fyq169.png "/>

Point user authentication, then method select Public key, user key Select the key that you just created CentOS 01, set a password. then click OK.

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/A7/74/wKioL1nm7WmQ48nsAABU3iDXc6w476.png "title=" Clipboard (9). png "alt=" Wkiol1nm7wmq48nsaabu3idxc6w476.png "/>

Finally, the link host, found can be logged into the Linux system.

Note: In Xshell user authentication, if the password for the user key is entered incorrectly, it is not possible to click OK.


Remote connection and key authentication for putty and Xshell

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.