Remote connection Linux and key authentication

Source: Internet
Author: User
Tags save file

Snapshot

Here first introduced a VMware function, snapshot function, if there are some misoperation in the Midway experiment, and can not be restored, we may use the function of this virtual machine, snapshot function.

For use with VMware virtual machines only.

Remote connection

Here we recommend two kinds of remote connection tools

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

Xshell
: https://www.netsarang.com/products/xsh_overview.html

Putty Installation Use Connect sshd
When you're done downloading it, open it.

Very simple operation.

Set the number of rows displayed in the box again

Set font, encoding

Login is automatically save a secret key, here we do not have to let him directly select "Yes"

Log in to the root account and password of the setup that you installed the machine upon completion

Is ok!

Xshell
Personal use free, with user-friendly use
Simple Setup Connection

Is OK!

Secret key authentication

Putty secret key generation
Using the Putty key tool to generate the secret key automatically

Authentication method: Public private key pairing authentication pass, public key Place server, private key save well

And keep your public key in your system.
Public key creation Save path setting
Steps

    1. Mkdir/root/.shh
    2. chmod 700/root/.shh
    3. Vim/root/.shh/authorized_keys #一定要保存正确的路径位置
    4. Vim/etc/sysconfig/selinux---selinux=disabled (permanently closed) or command line directly knocking ' Setenforce 0 '


Then log in using the secret key in the Putty tool.


There must be a point to save or the next time you want to continue with manual operation


There's no clue to that box.


Complete

Xshell
Actually, it's almost putty.

You need to use putty to manually load your public key into the save file.

Enter the password for the secret key to determine the login

Complete

About SELinux
Temporarily turn off SELinux--"Setenforce 0" getenforce View status = Sestatus-v
Permanently off SELinux----'/etc/sysconfig/selinux '-selinux=disabled (OFF) enabled is on

Remote connection Linux and key authentication

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.