Uploading and Downloading Code
- Ensure that the network connection is up and running.
Enter telnet code*************.com 22 on the client.
If command not found is displayed, the network cannot access CodeHub.
- Check if the client is trusted by CodeHub.
If the system prompts you to enter a password when you pull or push code, check whether the public key has been added to CodeHub.
If the public key has been added, run $ ssh -vT git@code*************.com to check whether the trust relationship is established.
If the following information is displayed, the trust relationship is established.
- If the fingerprints of both parties are changed after the trust relationship is established, a public key authentication error is reported during commit attempts. In this case, perform the following operations:
- Delete the lines related to code*************.com from the ~/.ssh/known_hosts file.
- Enter push, pull, or ssh -T git@code*************.com.
- Enter yes when asked whether to trust the public key of the server.
- The code download is successful. If the target branch of the push is protected, the code fails to be pushed.
- Contact the repository administrator to unprotect the branch. The code can be pushed after the protection is canceled.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot