How to generate SSH keys locally on the "Go" Mac

Source: Internet
Author: User

1. See if the secret key exists

Open terminal to see if an SSH key already exists: CD ~/.SSH

If there is no key there will be no such folder, there is a backup to delete, can also be directly deleted,

2. Generate a new key, the command is as follows

$ssh-keygen-t rsa-c "[Email protected]"

You need to change the email address to your own email address, then return to the default value, as this key is only for simple service, so there is no need to set a password.

The following will be shown when finished

Enter passphrase (empty for no passphrase):

Enter same Passphrase again:

Your identification has been saved in/users/your computer user name/.ssh/id_rsa.

Your public key has been saved in/users/your computer user name/.ssh/id_rsa.pub.

The key fingerprint is:

sha256:5v6zcqns/3bvdl0gjggqpwmflazxtslnkbw2b1mbc+e [email protected]

If the server side requires a public key, directly to the. SSH directory id_rsa.pub configuration can be, ID_RSA private key must be confidential!!!!

How to generate SSH keys locally on the "Go" Mac

Related Article

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.