Multi-user application of Git public key method under Linux

Source: Internet
Author: User

Problem: At present, many people are logged into the compiler through root user, resulting in the respective public key to cover each other, resulting in the inability to use more than one person simultaneously

Workaround:

Login compiler Add User # Useradd-m a00123456

Go to switch to your own user # Su a00123456

Create a public key [email protected]:~> ssh-keygen-t rsa-c [email protected]

Add a public key to your personal settings

You can download the code for git clone xxxxxxxxxxxx

Issue: for which permission issues are involved

WORKAROUND: Use the command Su-switch to the root user, add permissions to the file chmod 777 file name can be resolved;

Note: The difference between the user Su and Su-will switch the environment variable to the past

Note: When the code is down, switch to your own account to download.

Multi-user application of Git public key method under Linux

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.