• 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

Question githhub updated their rsa ssh host key

deveronclyde

New Pleskian

In our case this prevents us from pulling updates from github.

No great urgency for us, but I was wondering whether Plesk would respond with some kind of update or whether to perform the remedial steps myself?
 
Hi
We are struggling with it ... unable to update our apps and we have an important fix to push in production ...

The commands in the github blog post are not working :

we've removed the key with the following command :

Code:
ssh-keygen -f "/var/www/vhosts/ourwebsite/.ssh/git_known_hosts" -R "github.com"

but how to add the new rsa key ?
When using the curl command specified in the post, and tried to pull with the plesk gui, it's not working ...

Any update about that ?

Thanks
 
Ok, we've found the solution.

  • Remove the file "git_known_hosts" (make a backup just in case...)
  • try to pull from the Plesk GUI.
  • It will create the file again, with the new keys from Github.

On one of our websites, the key was obsolete, so we just recreate the ssh key in GiHub with the one provide by Plesk and Pull again

Hope it will help someone :)

Thanks
 
I have the same problem.
I removed the "git_known_hosts" file. Tried to create the repo and got this message:

  • Cloning into bare repository '/var/www/vhosts/[site-url]/git/vle.git'...
  • Server at 'bitbucket.org' is seen for the first time.
  • Adding its public key to the list of known hosts in '/var/www/vhosts/[site-url]/.ssh/git_known_hosts'.
  • # bitbucket.org:22 SSH-2.0-conker_f1bacdec8b mnt5j6b4kb2b
  • # bitbucket.org:22 SSH-2.0-conker_f1bacdec8b b45v65v54b4v
  • # bitbucket.org:22 SSH-2.0-conker_f1bacdec8b b45v656v5bvv
  • # bitbucket.org:22 SSH-2.0-conker_f1bacdec8b b546v5b4bvbb
  • # bitbucket.org:22 SSH-2.0-conker_f1bacdec8b v546565bv546
  • /usr/local/psa/admin/sbin/modules/git/git_ssh: line 49: /var/www/vhosts/[site-url]/.ssh/git_known_hosts: Permission denied
  • Failed to add public SSH host key for the 'bitbucket.org' into '/var/www/vhosts/[site-url]/.ssh/git_known_hosts'.
  • Known hosts file '/var/www/vhosts/[site-url]/.ssh/git_known_hosts' doesn't exist
  • fatal: Could not read from remote repository.

  • Please make sure you have the correct access rights
  • and the repository exists.
 
Back
Top