1 week 3rd Session Linux Remote management tool putty Xshell key Login

Source: Internet
Author: User
Tags keep alive

Two types of remote management tools commonly used under Linux:

One is based on the CLI (command-line mode) SSL Telnet and the other is based on the GUI (graphical user interface mode) of VNC.

Common command-line tools are:Putty,securecrt, WinSCP, Xshell today mainly on the Putty, Xshell these two installation use, free-secret landing

First, Putty : https://www.chiark.greenend.org.uk/~sgtatham/putty/

1. After opening the website, click "Download it Here" to enter the download page

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/08/C8/wKiom1nnDiCwRMipAAQzW3EZ0ok700.png-wh_500x0-wm_ 3-wmp_4-s_4205383523.png "title=" 1.1.png "alt=" Wkiom1nndicwrmipaaqzw3ez0ok700.png-wh_50 "/>

2. Download the package as needed and unzip it (contains all the tools about putty)

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/A7/78/wKioL1nnDDLzcOQcAASV5N0HFeU853.png-wh_500x0-wm_ 3-wmp_4-s_2307800555.png "title=" 1.2.png "alt=" Wkiol1nnddlzcoqcaasv5n0hfeu853.png-wh_50 "/>

3. Go to the Program home directory and Run "Putty.exe"

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/A7/78/wKioL1nnDUSzb4DlAANdLCFfeTk043.png-wh_500x0-wm_ 3-wmp_4-s_2411354144.png "title=" 1.4.png "alt=" Wkiol1nnduszb4dlaandlcffetk043.png-wh_50 "/>

4. Enter the program interface, the "Session" tab is displayed by default

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/08/C9/wKiom1nnEguhhPZrAAUSuyJVx-k937.png-wh_500x0-wm_ 3-wmp_4-s_798296516.png "title=" 1.5.png "alt=" Wkiom1nneguhhpzraausuyjvx-k937.png-wh_50 "/>

5. Click on the "Session" tab on the left to enter information such as the IP port of the server you want to connect to. Then select "Window", "translation"

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/A7/79/wKioL1nnEbayjrx2AAM349HdJkc977.png-wh_500x0-wm_ 3-wmp_4-s_1770249888.png "title=" 1.6.png "alt=" Wkiol1nnebayjrx2aam349hdjkc977.png-wh_50 "/>

6. Select "UTF-8" in the "Remote Character set" drop-down menu and return to "Session" again

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/A7/79/wKioL1nnEp-wcc-CAAOFHdufUB8107.png-wh_500x0-wm_ 3-wmp_4-s_770757963.png "title=" 1.7.png "alt=" Wkiol1nnep-wcc-caaofhdufub8107.png-wh_50 "/>

7. In the blank Space under "Saved Sessions" to fill in a name about this session, this time use "Centos7lab", and then click the "Save" button to save all the personalization settings of the session (after opening the software directly select "Centos7lab", click " Load button), and then click on the "Open" button to connect to the server

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/08/CA/wKiom1nnFseR3DfuAALLVngU00k912.png-wh_500x0-wm_ 3-wmp_4-s_1915905540.png "title=" 1.8.png "alt=" Wkiom1nnfser3dfuaallvngu00k912.png-wh_50 "/>

8. Pop Up the Connection dialog box, press the prompt to enter the account password, display "[[email protected]~]#] indicates that the server has been successfully logged in

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/08/CA/wKiom1nnF57CmFyyAAE2JVbBrtA452.png-wh_500x0-wm_ 3-wmp_4-s_3052288627.png "title=" 1.9.png "alt=" Wkiom1nnf57cmfyyaae2jvbbrta452.png-wh_50 "/>

9. Key Login

Open the Putty Program home directory, run the "Puttygen" program, click on the main interface "Generate" button, the key pair (key and private key) generation, the process needs to quickly move the mouse, until the progress bar full, pop up the completion of the interface

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/A7/79/wKioL1nnFsmS1AcHAAUWM6zXbQo696.png-wh_500x0-wm_ 3-wmp_4-s_3064516994.png "title=" 2.0.png "alt=" Wkiol1nnfsms1achaauwm6zxbqo696.png-wh_50 "/>

10. After you have properly saved the public key, copy all the strings in the "Public Key box"

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/A7/7A/wKioL1nnGl-zRqVgAAPc59iJ7ns229.png-wh_500x0-wm_ 3-wmp_4-s_1263571287.png "title=" 2.1.png "alt=" Wkiol1nngl-zrqvgaapc59ij7ns229.png-wh_50 "/>

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/08/CA/wKiom1nnHdqQTvArAAPxqZ29iAo393.png-wh_500x0-wm_ 3-wmp_4-s_2107720999.png "title=" 2.2.png "alt=" Wkiom1nnhdqqtvaraapxqz29iao393.png-wh_50 "/>

11. Locate the server dialog that has been logged in and enter the following command (this step operates on the server)

[email protected] ~]# mkdir/root/.sshCreate the ". SSH" folder #在/root
[email protected] ~]# chmod 700/root/.sshThe permissions for the #修改 ". SSH" folder are 700
[[email protected] ~] #vi/root/.ssh/authorized_keys#创建并编辑 Authorized_keys File

By"I"Key to make sure the lower left corner appears"--insert--"After the logo
ByRight mouse buttonPaste the string of the public key up
Input: Wq, press ENTER to save exit

Firewall and SELinux shutdown required to ensure successful connection

[[Email protected] ~] #iptables-F

[[email protected] ~]#service iptables Save

[email protected] ~]#setenforce 0 #临时关闭

[[email protected] ~] #vi/etc/selinux/config #永久关闭 confirm selinux=disabled

12. Open the Putty operator interface, select the saved "CENTOS7" session entry and click the "Load" button. Then expand the left "Connection", "ssh", "Auth" option

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/A7/7F/wKioL1nnVULSTIgxAAMEPZMapTU560.png-wh_500x0-wm_ 3-wmp_4-s_572659096.png "title=" 2.3.png "alt=" Wkiol1nnvulstigxaamepzmaptu560.png-wh_50 "/>

Click "Browse" on the right, browse the folder, locate the previously saved private key file, click "Open"

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/A7/7F/wKioL1nnVg7AWtbBAAWNfanX7zU752.png-wh_500x0-wm_ 3-wmp_4-s_4268974718.png "title=" 2.4.png "alt=" Wkiol1nnvg7awtbbaawnfanx7zu752.png-wh_50 "/>

Back to the main screen, select "Session" on the left, click "Save" on the right, save the settings, then click "OPEN"

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/08/D0/wKiom1nnWgbw5ZCuAAMIpAoZh9I365.png-wh_500x0-wm_ 3-wmp_4-s_2040853186.png "title=" 2.5.png "alt=" Wkiom1nnwgbw5zcuaamipaozh9i365.png-wh_50 "/>

13. A different Login window (note the information in the red box in the picture), enter the account (root) to log in to complete the login, if the private key is encrypted, here also enter the password of the private key

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/A7/80/wKioL1nnWFfDVVG7AAFDDcPR8h4667.png-wh_500x0-wm_ 3-wmp_4-s_4238920269.png "title=" 2.6.png "alt=" Wkiol1nnwffdvvg7aafddcpr8h4667.png-wh_50 "/>

Here, Puttyy installation, configuration, key login is complete. If you also need to complete the key login on another server, simply copy the public key to the "/root/.ssh/authorized_keys" of the corresponding server.

Second, Xshell : http://www.netsarang.com/download/down_xsh.html

1. After installing the Xshell, double-click the "Xshell5" icon on the desktop to launch the software and click the "New" button in the "Session" window that pops up.

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/A7/80/wKioL1nnX-Hiyxv1AAbP8CjpcvE693.png-wh_500x0-wm_ 3-wmp_4-s_2143010791.png "title=" 3.1.png "alt=" Wkiol1nnx-hiyxv1aabp8cjpcve693.png-wh_50 "/>

2. In the popup dialog box, fill in the server IP, session name, etc., similar to putty

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/A7/81/wKioL1nnYbbhofP9AAftY8JldeI524.png-wh_500x0-wm_ 3-wmp_4-s_3527306061.png "title=" 3.2.png "alt=" Wkiol1nnybbhofp9aafty8jldei524.png-wh_50 "/>

3. In Xshell can save the account password, login time do not need to enter, such as: Click on the left "user authentication", select the method, fill in the account password, click "OK"

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/08/D2/wKiom1nnZrSCUlBIAAMKjbYF8k0694.png-wh_500x0-wm_ 3-wmp_4-s_3279133520.png "title=" 3.3.png "alt=" Wkiom1nnzrsculbiaamkjbyf8k0694.png-wh_50 "/>

In Xshell, you can also "set keep alive" to ensure that the terminal is not disconnected from the server for long periods of inactivity

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/08/D2/wKiom1nnapDTscaSAAKSxLD3690917.png-wh_500x0-wm_ 3-wmp_4-s_444067194.png "title=" 3.6.png "alt=" Wkiom1nnapdtscasaaksxld3690917.png-wh_50 "/>

4. Now back to the session menu, the session you just established is already in the example table. Double-click on it to log on to the appropriate server.

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/08/D2/wKiom1nnZw2yiCTZAAHTyrqiqvQ214.png-wh_500x0-wm_ 3-wmp_4-s_41488312.png "title=" 3.4.png "alt=" Wkiom1nnzw2yictzaahtyrqiqvq214.png-wh_50 "/>

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/A7/81/wKioL1nnZT_RF3X2AAH_4N_eJoQ757.png-wh_500x0-wm_ 3-wmp_4-s_671632173.png "title=" 3.5.png "alt=" Wkiol1nnzt_rf3x2aah_4n_ejoq757.png-wh_50 "/>

If you need to use the "right mouse button" as the paste, like putty, you need to set the following

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/08/D2/wKiom1nna92iVfgTAAUZv1K7nFA496.png-wh_500x0-wm_ 3-wmp_4-s_4293841460.png "title=" 3.7.png "alt=" Wkiom1nna92ivfgtaauzv1k7nfa496.png-wh_50 "/>

Xshell Support Multi-window, multiple arrangement, improve work efficiency

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/08/D2/wKiom1nnbOKySzmyAAUzlbV_OWg719.png-wh_500x0-wm_ 3-wmp_4-s_3867206671.png "title=" 3.8.png "alt=" Wkiom1nnbokyszmyaauzlbv_owg719.png-wh_50 "/>

5. Key Login

Select "Tools", "New User key Generation Wizard" in Xshell main interface

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/08/D2/wKiom1nnb2PxvzHtAAUFnBEN2u4228.png-wh_500x0-wm_ 3-wmp_4-s_1334341078.png "style=" Float:none; "title=" 4.1.png "alt=" Wkiom1nnb2pxvzhtaaufnben2u4228.png-wh_50 "/>

6. Follow the wizard prompts to build, in the end, you need to enter a name password for this key for later management

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/A7/81/wKioL1nnbK6DSWZPAAG4B5HxNQU010.png-wh_500x0-wm_ 3-wmp_4-s_2297461676.png "style=" Float:none; "title=" 4.2.png "alt=" Wkiol1nnbk6dswzpaag4b5hxnqu010.png-wh_50 "/>

7. Copy the public key that is displayed during the build process

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/A7/81/wKioL1nnbYrQdJaIAAMNdkn3Ivg787.png-wh_500x0-wm_ 3-wmp_4-s_1650692779.png "title=" 4.3.png "alt=" Wkiol1nnbyrqdjaiaamndkn3ivg787.png-wh_50 "/>

8. After completion, automatically return to the "user key" management interface

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/08/D2/wKiom1nncXXAaUicAAM8kG9Q04A435.png-wh_500x0-wm_ 3-wmp_4-s_3961201394.png "style=" Float:none; "title=" 4.4.png "alt=" Wkiom1nncxxaauicaam8kg9q04a435.png-wh_50 "/>

9. Log in to the server, follow the "11 steps" method in the previous Putyy tutorial to complete the creation of the public key file on the server

10. Open the "Session" menu in the "Xshell" main interface,

Select the previously created Centos7 session, select Properties, user authentication, Method drop-down menu "Public key", select the key created in the previous step, enter the key password, click "OK" to complete the "session and key binding".

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/08/D2/wKiom1nndBLjfLRAAAY3mz4icNY384.png-wh_500x0-wm_ 3-wmp_4-s_1460271513.png "title=" 4.5.png "alt=" Wkiom1nndbljflraaay3mz4icny384.png-wh_50 "/>

11. Finally, double-click on the "Centos7lab" session to implement the key login as putty.

1 week 3rd Session Linux Remote management tool putty Xshell key Login

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.