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