[SSH] Mac Quick Login

Source: Internet
Author: User

There are three ways to quickly log in:
1. Automatic SSH/SCP mode I'm using this one, and I think it's great.
2.shell script this one's good.
3. Establishing a SSH/SCP channel this is a bit wasteful.
The above are Baidu's, the following write their own:

Let's describe it first:

1. Generating the public key private key

2. Upload the public key to the server

4. Add the public key to the Authorized_keys file

5. Configure the local config file

6.ssh xx Landing

It's OK.
I put a part of the code

# Client-side operation sudo ssh-keygen-t RSA # Generate public key private key, all the way to the right (if you want to get more than one name, I write an example below)

# The system prompts enter the address you want to place when you enter file in which to save the key, ~/equivalent to/users/yuzhen/

#enter file in which to save the key:/users/yuzhen/.ssh/id_rsa_204.120

~/. Shh  # can see two files RSA and   ~/.ssh/id_rsa.pub [email protected]:~/.ssh/~/>>  ~/. Sshtouch configvim confighost  ~/.ssh/id_rsa_204.120 # your private key address
# Configure multiple words and copy them again.

Host  #别名, domain abbreviation I'm writing IP end hostname #ip domain user # username identityfile ~/.ssh/id_rsa_204.120 # Your private key address


Let's go back to the update, and get some fun.

[Ssh]mac Quick Login

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.