Putty, Xshell Connect Linux and Putty, Xshell key authentication

Source: Internet
Author: User
Tags key string

Download putty

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


Select Putty.zip 32-bit download


After installation, add the IP that you want to remote

Saved sessions here fill in your virtual machine name (optional)



Set some properties


Window:

Lines of Scrollback: number of rows tumbling up and down

Appearance: Setting font properties

Translation: Character encoding


After modification, press session--"Save-->open


You can enter the root username and password on the line:

!!! In putty, we directly right-click to copy


Xshell download directly on the Baidu load normal installation can


Add IP Sessions after installation

New session

Here's what you need to be aware of:

Click User Name Authentication: Enter the username and password to connect directly

In Xshell we can open multiple windows!!




Key Authentication

A pair of encrypted strings, one encrypted and one decrypted.

Computer (client-side private key) server to place public key

First, Putty key authentication

Locate Puttygen.exe File


Click Generate to generate the public key

The top box is the public key

My password (123456)

and then press Save private key

Save Public key

Save Address Custom (d/:P utty file)


Open command:


Command:

. mkdir/root/.ssh

. Chomod 700/root/.ssh

. Vi/root/.ssh/authorized-keys

Copy the copied public key string into this file

Authorized_keys (is underlined) Authorized_keys must not be wrong

Next: Turn off Firewall (selinux)

Temporarily close command: Setenforce 0


For the private key operation:

Open Putty-> Select our server (virtual machine)-"press Load->ssh (in the left option bar)-" Auth

Locate the address where we just saved the private key:

Then press session-"Save->open


Final success



Xshell Key authentication:

Open the new User Key Generation Wizard, xshell-> tools (leave default)

Next and Next

Generate Public key

Then:

. Vi/root/.ssh/authorized-keys

Copy the copied public key string into this file

Authorized_keys (is underlined) Authorized_keys must not be wrong


: Wq Save Exit

Next Click Open (red box)


Enter post-select Action Name-"Properties-" User authentication

Select by Red Box

Final success







Note: If you have not previously worked on the key, you must first 1. Create a directory-"Modify permissions 700-" edit this file (cannot write the wrong name)

Then edit the file by pressing the I key before pasting

Putty, Xshell Connect Linux and Putty, Xshell key authentication

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.