1.9 Remote connection to Linux using putty
Download putty client with direct access to https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html this link to download
Choose the MSI (' Windows Installer ') under the package files of the Web page to download the corresponding version according to your system. 650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/20ca759eb3ec9398f1e4207fd1569122/xmlnote/ ac866b05ebad4387b3618d604b44bf61/9424 "alt=" download page location "style=" Border-style:none;background-color:rgb (255,255,255); " />
After downloading, directly double-click Run installation package to complete the installation, find the Start Bar menu putty icon Click Run.
Open a configuration interface, configure the address and set up a session name, click Save saved. 650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/20ca759eb3ec9398f1e4207fd1569122/xmlnote/ fd10c1deb15a44c8ac9318c6dc1a28cd/9384 "alt=" Configuration Interface "style=" Border-style:none;background-color:rgb (255,255,255); "/ >
Remote connection
After the steps are configured, the point open will have a prompt for the first time, a warning window pops up and a confirmation can be done. A normal connection prompts login as: Enter the user name and password to log in successfully. 650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/20ca759eb3ec9398f1e4207fd1569122/xmlnote/ 6b58691be2f549c59c9323b7a2acde68/9388 "alt=" Login Successful "style=" Border-style:none;background-color:rgb (255,255,255); "/ >
1.10 using Xshell to connect to Linux
-
Download the Xshell client first and install it properly. :www.netsarang.com official website Download, there is a personal home and school teaching version.
-
After running the software ==> select ==> New Session ==> set the name and host address information ==> Click Confirm ==> Last Enter the name of the username ==> password ==> can click Remember options Next is convenient many 650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/20ca759eb3ec9398f1e4207fd1569122/ xmlnote/f6204ce9f2bd41a6801723c7211d9759/9398 "alt=" Xssh "style=" Border-style:none;background-color:rgb ( 255,255,255); "/>
-
Connection succeeded 650) this.width=650; src= http://note.youdao.com/yws/public/ resource/20ca759eb3ec9398f1e4207fd1569122/xmlnote/ee6c3c7b71a44c03a0d7cac2397db832/9419 "alt=" xssh Success "style=" Border-style:none;background-color:rgb (255,255,255); "/>
1.11 Putty Key authentication
In the Start menu bar, locate the Puttygen tool under Putty. Click the Generate button and the mouse moves back and forth under the progress bar to speed up the build.
650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/20ca759eb3ec9398f1e4207fd1569122/xmlnote/ 105cf115f3d84363b78994d97be0c426/9470 "alt=" Puttygen "style=" Border-style:none;background-color:rgb (255,255,255) ; "/> 650) this.width=650;" Src= "http://note.youdao.com/yws/public/resource/20ca759eb3ec9398f1e4207fd1569122/ xmlnote/a3eb599888e24e0d9dbce49b0d99f581/9484 "alt=" key "style=" Border-style:none;background-color:rgb ( 255,255,255); "/>
When completed, a public key file and a private key file are generated. The public key is used on the server, and the private key is saved by your own computer. Why set key passphrase? That's to prevent the private key from being stolen, connect your server, remember to save the password. 650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/20ca759eb3ec9398f1e4207fd1569122/xmlnote/ ed861019142d499ba14c11666f311c40/9486 "alt=" key Complete "style=" Border-style:none;background-color:rgb (255,255,255); "/ >
Click Save Private key to pop up a file save option. 650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/20ca759eb3ec9398f1e4207fd1569122/xmlnote/ 2a48705c68884799a0828ae20c46ddf6/9543 "alt=" Privvate_save "style=" Border-style:none;background-color:rgb ( 255,255,255); "/>
Copy the public key into the remote Linux putty connected to the Linux system, copy the public key to the/root/.ssh/authorized_keys file to save. If not, you need to create one yourself, creating the following method:
[[email protected] ~]# mkdir/root/.ssh Create directory
650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/20ca759eb3ec9398f1e4207fd1569122/xmlnote/ b7f34c6658264af8941a30ab9c13771b/9541 "alt=" ls View hidden directory "style=" Border-style:none;background-color:rgb (255,255,255) ; "/>
[[email protected] ~]# Vi/root/.ssh/authorized_keys Create authorized_keys configuration file [[email protected] ~]# chmod 700/root/.ssh/to directory setting permissions [[email protected] ~]# chmod 600/root/.ssh/authorized_keys setting permissions for profiles
Turn off SELinux If you do not close selinux, you will not be able to log in when connected. There are two ways to turn off SELinux: temporary shutdown
[Email protected] ~]# setenforce 0 #关闭 [[email protected] ~]# getenforcepermissive[[email protected] ~]# Setenforce 1 #开 [Email protected] ~]# getenforceenforcing
Permanently closed
[[email protected] ~]# vi /etc/selinux/config# Modifying the parameters of SELinux within the file #selinux=enforcing #默认参数SELINUX =disabled permanently close # Save exit # prompt: Restart Restart command required init 6# View selinux Status [[email protected] ~]# /usr/sbin/sestatus -vselinux status: disabled
-
Turn off Firewall (firewall)
#直接关闭firewall [[email protected] ~]# firewall-cmd --state running # Turn on display running turn off display not running[[email protected] ~]# systemctl stop firewalld.service #停止firewall [[email protected] ~]# systemctl disable firewalld.service #禁止firewall开机启动Removed symlink /etc/systemd/system/ multi-user.target.wants/firewalld.service.removed symlink /etc/systemd/system/ Dbus-org.fedoraproject.firewalld1.service.
Enter the user and settings key plus password, below is the prompt for login success
Login as:rootauthenticating with public key ' rsa-key-20171018 ' Passphrase for key ' rsa-key-20171018 ': Last login:wed Oct 1 8 18:59:27 from 192.168.3.222[[email protected] ~]#
1.12 Xshell key authentication
Xshell Password authentication and Putty key authentication is not much, Linux on the same way, mainly software differences.
Select File ==> new ==> set session properties 650) this.width=650; src= http://note.youdao.com/yws/public/resource/ 20ca759eb3ec9398f1e4207fd1569122/xmlnote/7c4f5c9e361f4bc8911106e2f8aa9ec7/9627 "style=" border-style:none; Background-color:rgb (255,255,255); "/>
Enter the user name of the login
650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/20ca759eb3ec9398f1e4207fd1569122/xmlnote/ f09090cc9abd46149a6772223b380d07/9629 "style=" Border-style:none;background-color:rgb (255,255,255); "/>
Select the second PUBILC key in click to browse in the user key interface click on the right of the build 650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/ 20ca759eb3ec9398f1e4207fd1569122/xmlnote/19b28abb14654a999ca3745e49057e6e/9631 "style=" border-style:none; Background-color:rgb (255,255,255); "/>
The wizard chooses the next step to encrypt the key to the password 650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/ 20ca759eb3ec9398f1e4207fd1569122/xmlnote/3ba9b1c0f8f5476cb82346dcd326e660/9633 "style=" border-style:none; Background-color:rgb (255,255,255); "/> 650) this.width=650; src=" http://note.youdao.com/yws/public/resource/ 20ca759eb3ec9398f1e4207fd1569122/xmlnote/0918965a33ec480daf9d66adf71e24fd/9635 "style=" border-style:none; Background-color:rgb (255,255,255); "/>
The key name and password are set and then click Next 650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/ 20ca759eb3ec9398f1e4207fd1569122/xmlnote/6a436a8736fb4e20bc891d9a5f0f9d70/9637 "style=" border-style:none; Background-color:rgb (255,255,255); "/>
Copy the public key to the server and save the file 650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/ 20ca759eb3ec9398f1e4207fd1569122/xmlnote/d62b0c31b8e941e18ffc738290788608/9639 "style=" border-style:none; Background-color:rgb (255,255,255); "/>
Select the name you just set click OK
650) this.width=650; "Src=" http://note.youdao.com/yws/public/resource/20ca759eb3ec9398f1e4207fd1569122/xmlnote/ c939ceb1b4f5485fac746c4cf06246dd/9641 "style=" Border-style:none;background-color:rgb (255,255,255); "/>
Login successful Display the following code
Xshell 5 (Build 1332) Copyright (c) 2002-2017 Netsarang Computer, Inc. All rights reserved. Type ' help ' to learn. Xshell prompt. [c:\~]$ Connecting to 192.168.3.200:22...connection established. To escape to local shell, press ' ctrl+alt+] '. Last login:wed Oct 18:56:41 from 192.168.3.222[[email protected] ~]#
This article is from the "Travels of Taoyuan" blog, please make sure to keep this source http://3622288.blog.51cto.com/9153892/1973899
CentOS 7 Login with putty, Xshell remote connection and key authentication