Redhat to set up SSH based on key user login

Source: Internet
Author: User
Tags ssh ssh server

Create a user named Gates in the SSH client and, as gates, in his or her host directory. The key pair file in the. SSH hidden directory

2. Use SCP to copy the public key file Id_rsa.pub file in this directory to the host directory of the server on which you want to log on, and to create a hidden folder ". SSH" in the host directory, rename the public key file to Authorized_keys. and copied to the. SSH directory

Client (172.16.0.1):

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/Network/Security/

SSH server (172.16.0.2):

3. The client uses the root account SSH remote login SSH server verification key authentication

Gates user directly use SSH command without password login to 172.16.0.2 root account host Directory

This article comes from "All the Way North" blog, please be sure to keep this source http://showerlee.blog.51cto.com/2047005/1118362

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.