Password-free SSH access

Source: Internet
Author: User
Tags free ssh ssh access

Password-free SSH access

Life is limited, and I don't want to waste the passwords of multiple online machines. So let's take a look at how to SSH password-free to various machines.

First, you must generate a key.
Ssh-keygen-t dsa-B 1024

Press enter three times to keep the default option
The file will be generated (the user name of the author is yulong. yhj)
/Home/yulong. yhj/. ssh/iddsa
/Home/yulong. yhj/. ssh/iddsa. pub

Note: Back up data in advance ~ Files under/. ssh.

Then execute the command
Ssh-copy-id-I ~ /. Ssh/ yulong.yhj@
Replace yulong. yhj with your user name;
Replace with the target machine

Enter the logon password of the target machine;

You can also copy files ~ /. Ssh/iddsa. pub to the target machine, and then manually merge
Cat idrsa. pub >> ~ /. Ssh/authorized_keys
You can.

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: 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.