Complete SSH login in just a few steps without a password

Source: Internet
Author: User
Complete SSH login in a few simple steps without a password-general Linux technology-Linux technology and application information. The following is a detailed description. There are some things about SSH login without a password, which is very complicated. Today I will share with you a simple method.
Copyright: www.itshanghai.net
Server 192.168.1.1 user user01
Client 192.168.1.2 user user02

Client
User01 Logon
If the. ssh directory does not exist, perform the following steps:
Create. ssh
Mkdir. ssh
Chown user01. ssh
Chmod 700. ssh
Cd. ssh
Keygen? T rsa
Enter (PATH)
Press enter (blank password)
Scp id_rsa.pub root@192.168.1.1:/home/user01/. ssh

Server
User02 Login
If the. ssh directory does not exist, create
Mkdir. ssh
Chown usr02. ssh
Chmod 700. ssh
Cd. ssh
Mv id_rsa.pub authorized_keys
Chown user02 authorized_keys
Chmod 700 authorized_keys

Client
Ssh? L user02 192.168.1.1
No Password required

OK!

[ This post was last edited by anniey]

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.