May 30 Task
1.9 Remote connection to Linux using putty
1.10 using Xshell to connect to Linux
1.11 Putty Key authentication
1.12 Xshell key authentication
As mentioned in the previous section, the purpose of setting a static IP for a system is to have remote access.
Remote access is a tool that requires remote access.
Here are two tools, one is putty and the other is Xshell
First, putty.
The host NAME/IP address is used to fill in IP addresses or host name
Port default SSH port is 22 ports
Select the connection method is SSH
Below you can fill in the name of the session and save it.
Because the key has been configured before, this is a key pairing login.
Say Xshell. Xshell is basically using Xshell for remote connections due to its more user-friendly interface and more convenient use.
What needs to be said here is that the educational version of XSHELL6 is more convenient for individual users at present.
Here is an interface for XSHELL6
Basically the configuration process is similar to putty, where there is no more complaints.
Next is the public key pair. Here take Xshell as an example.
What to keep in mind is:
Client---"Private key
Server---"Public key
As long as the pairing is successful, it can be authenticated
Steps
Create a new/root/.ssh directory,
Permissions chmod 700
Create a new Authorized_keys file in the. ssh directory and copy the public key into it. If you have more than one public key, remember to separate the other line.
go in from the new place
Copy the public key well, because it needs to be used in the host, and you can save the file for later use.
Log in to the host, open the key file under/root/.ssh Authorized_keys file paste in
Next is the configuration of the user key.
Enter the properties of the session.
Follow the above user key to select and fill in the previously set password.
Click Accept and save. will be entered into the remote system as a key.
Linux20180530 Putty Xshell key authentication