• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Git update / public key already known

Erwan

Regular Pleskian
Hi all,

Since two days, we can not update with Git some website in Plesk (Obsedian 18.0.29).
We have this message:

Public key for the server at 'www.mygilabserver.com' is already known in '/var/www/vhosts/mydomain.com/.ssh/git_known_hosts'. Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.


An idea?
We don't have made any change.
 
Thanks Igor.

I try...

6) Remove entries from the git_known_hosts_with_port_32301 file that correspond to the host example.com:
# ssh-keygen -f ~/.ssh/git_known_hosts_with_port_32301 -R example.com


I've only a "git_known_hosts" file.
I'm not sur but i try that:
$ ssh-keygen -f ~/.ssh/git_known_hosts -R mydomain.com
Host mydomain.com not found in /var/www/vhosts/mydomain.com/.ssh/git_known_hosts

Same result with:
$ ssh-keygen -f ~/.ssh/git_known_hosts -p 32301 -R mydomain.com
OR
$ ssh-keygen -f ~/.ssh/git_known_hosts -P 32301 -R mydomain.com

In the file git_known_hosts, i have:
|1|SLoJq8YB5R/MNJi0ZPDy+xxxxxxxxxxxxxxxxxx ssh-rsa AAAAB3NzaC1ycxxxxxxxxx
|1|rohf7vLqmRARxcWD4gaxxxxxxxxxxxxxxxxxxxx ssh-rsa AAAAB3NzaC1ycxxxxxxxxx

What's my problem?
 
Back
Top