• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Input Plesk Obsidian, Github Cloning not working

challa

New Pleskian
I am using this method mentioned here to clone my Github repo to my httpdocs folder: Is it possible to connect to private Github repositories using Plesk Git extension?, but I am unable to connect. I always get the following error:
  • Public key for the server at 'github.com' is already known in '/var/www/vhosts/new.example.com/.ssh/git_known_hosts'.
  • Permission denied (publickey).
  • fatal: Could not read from remote repository.
  • Please make sure you have the correct access rights
  • and the repository exists.
I am not using the standard SSH port but even if I switch to the default 22, I keep getting similar errors.
My firewall is accepting connections on my SSH port and I have added the public key on the SSH section on my Github account.
HTTPS is not an option because I am cloning a shared private repo.
I am using Centos 7 with Plesk Obsidian. Everything up to date.
I tried to use the same procedure on my Plesk Onyx server and it worked fine. Same firewall settings.
Any suggestions?
Thanks.
 
I am using this method mentioned here to clone my Github repo to my httpdocs folder: Is it possible to connect to private Github repositories using Plesk Git extension?, but I am unable to connect. I always get the following error:
  • Public key for the server at 'github.com' is already known in '/var/www/vhosts/new.example.com/.ssh/git_known_hosts'.
  • Permission denied (publickey).
  • fatal: Could not read from remote repository.
  • Please make sure you have the correct access rights
  • and the repository exists https://snaptube.cam/ 9apps.
I am not using the standard SSH port but even if I switch to the default 22, I keep getting similar errors.
My firewall is accepting connections on my SSH port and I have added the public key on the SSH section on my Github account.
HTTPS is not an option because I am cloning a shared private repo.
I am using Centos 7 with Plesk Obsidian. Everything up to date.
I tried to use the same procedure on my Plesk Onyx server and it worked fine. Same firewall settings.
Any suggestions?
Thanks.
I got this solved..
 
Would you please be so kind to share the solution so that others who face the same issue can learn from it?
 
What I did is
  1. create my own id_rsa and id_rsa.pub
  2. Manually create a folder .ssh
  3. copy the two files
  4. Than add the connection to git repository
In fact, because I have many repo's linked to website on the same plesk obsidian server, my workflow is
  1. create one github user. (the machine account) assign
  2. add this user as read only in each repository on the git server (in my case github.com)
  3. copy the same id_rsa / id_rsa.pub combo to each .ssh folder in each home directory on plesk-server.
I'm almost sure we are not the only to have many domains linked with as many repositories and this pattern should be include in a user story for the backlog of the next sprint of plesk.
 
Back
Top