Git library Add encryption key

Source: Internet
Author: User
Tags ssh server

$ssh-keygen-t rsa-c "${email}" # "-T RSA" indicates the type of encryption used for the key and can also be DSA; " -C "Sets the comment text (RSA supports the variable-length key algorithm.) DSA Digital Signature algorithm is standard for digital signature)

Generate the. Ssh/id_rsa key

and. Ssh/id_rsa.pub public key cat id_rsa.pub--added to GitHub's SSH keys

The 1.SSH client stores the SSH public key to the SSH server in advance, and then the SSH client carries the public key to initiate a login request to the remote SSH server

2. The remote side receives the request, finds the public key in the server's Authorized_keys and compares

3. Remotely send a public key encrypted random string for identity challenge

4.SSH client decrypts and sends back to remote server with its own private key

Test:

ssh-t [email protected]

(Reference document: http://blog.csdn.net/phunxm/article/details/45083335)

Upload file: Git remote add origin [email protected]://github.com/xxue~ associated with a remote library

Git push-u origin master pushes all content on the master branch for the first time

GIT pushes branch content after Origin master

Git library Add encryption key

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.