How to clone github private repository in cpanel (shared host without terminal or ssh)?
Asked Answered
V

1

9

I have a shared host and they don't give me ssh or terminal for it. I've tried to clone my private repos from git by Git™ Version Control so I am using ssh link because they need permission. I don't know how to make ssh key on cpanel so I can make it from my mac and upload to cpanel and also add to Github.

But when running, they give me error: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists..

I'm a beginner for using Git & StackOverflow, so please let me know if there's anything wrong with the question I've asked. Thanks!

Tried Url with password Cloning a private Github repo and having a response "The clone URL cannot include a password."

Vedi answered 14/5, 2019 at 9:51 Comment(7)
you should check these answers:Limeade
#2950607Limeade
https://mcmap.net/q/1320464/-git-pull-without-sshLimeade
Thanks you for that! Maybe I will try another way. All of them can't using in my solution.Centroclinal
@HùngNguyễn I have this same question, were you able to work around it?Chromatophore
@Chromatophore I changed shared host to VPS. I can't find anyway for sharedhost (with limit permission).Centroclinal
Okay, thanks. I was finally able to do it by SSH'ing in through an external client (PuTTY, in my case) and then following the steps to give a private key to my repo. You should put what worked for you in an answer so others can be helped by it.Chromatophore
C
1

This is different than what worked for the OP (hopefully they put their solution in an answer here).

I was able to solve this problem by installing an external SSH client (like PuTTY for Windows) and then SSH into my website using its IP address. Then I followed these steps from cPanel to connect the private repository.

Chromatophore answered 31/5, 2020 at 3:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.