Linux remote login and key configuration

Source: Internet
Author: User
Tags auth

2017-10-18


1, Linux remote login tools are: Putty Xshell SECURECRT, etc.

1.1, tool putyy, first to download from the Internet, if the search from Baidu download, just a simple landing tool, features are not comprehensive, need to download from the gateway. Website:

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

(This software is used under the WINDONW system), after downloading, to install.

Then open it and open it after

In:host name (or IP address), enter the port after the IP or domain name to enter the relevant login ports

Then in:saved Sessions Enter a name, and then save (if more in the Linux machine), later in the save to find the corresponding saved name, and then, click Open for opening, the first time you log in, will pop up a putty Security alert prompt, click Yes on the line, and then will pop up a login box, enter the user name and password, you can log on. But, this is just a simple username and password login.

1.2 How do I log in with a key?

A. Run puttygen.exe First, then click Generate. (in the process of generating the key, moving the mouse will generate faster)

B. Save two keys (save publickey and save privatekey)

C. Make a configuration on the remote server, log in to the remote host, enter: Create a mkdir. SSH directory (create SSH key directory) in the user's home directory, then create a touch Authorized_keys file, copy the public key to Authorized_keys, Save the exit and change the appropriate permissions:

chmod. ssh/
chmod. Ssh/authorized_keys

Then shut down the firewall, SELinux,

D. Set the private key on the native Putty (find the Auth option in SSH in the cennection option)

First find the host name in the main interface, click Load and then to the Auth option in SSH in the cennection option, Click Browser in private_key file for authentication to find the newly saved Place the private key, and then go back to the main screen to save it. You can go to the landing.

Tip: When you are in a key pair, you can encrypt the private key, which makes it more secure.







Linux remote login and key configuration

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.