• 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 + Bitbucket over SSH not working?

futureweb

Regular Pleskian
Hey there,
got issues to get Obsidian connecting to my local Bitbucket Server.
Added Plesk Pub. Key to my Bitbuket Server, but Plesk refuses to connect to my Server with this Error:

Code:
    Server at 'servername.tld:7999' is seen for the first time.
    Adding its public key to the list of known hosts in '/var/www/vhosts/servername.tld/.ssh/git_known_hosts_with_port_7999'.
    # servername.tld:7999 SSH-2.0-SSHD-UNKNOWN
    # servername.tld:7999 SSH-2.0-SSHD-UNKNOWN
    # servername.tld:7999 SSH-2.0-SSHD-UNKNOWN
    No RSA host key is known for [servername.tld]:7999 and you have requested strict checking.
    Host key verification failed.
    fatal: Could not read from remote repository.
    Please make sure you have the correct access rights
    and the repository exists.

Just don't know what to try anymore ... hope someone here can help me on this one?

thx, bye from Austria
Andreas
 
Hi,
i solve this problem with this solution:

At the frist step i login to this server with my root-account and login into the account from the customer or webhosting project:
Code:
[root@www2 customer-site.net]# su -m customer123123
bash: /root/.bashrc: Keine Berechtigung
bash-4.2$ pwd
/var/www/vhosts/customer123123.www2.netzfabrik.eu/customer-site.net

Now, i change the directory to "/tmp" to test clone the repo from bitbucket server:
Code:
bash-4.2$ cd /tmp
bash-4.2$ git clone ssh://[email protected]:7999/cst/www.customer-site.net.git
Klone nach 'www.customer-site.net'...
The authenticity of host '[bitbucket.netzfabrik.com]:7999 ([2a07:6fc0:5:0:5:1:64:7]:7999)' can't be established.
RSA key fingerprint is SHA256:O/N7iWnpLsXmzUgfKCk5u6mHeWXrLfZ/FNvAOFd+Wro.
RSA key fingerprint is MD5:68:a2:71:bb:64:ef:27:61:b2:e5:0e:69:c4:02:fb:91.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[bitbucket.netzfabrik.com]:7999,[2a07:6fc0:5:0:5:1:64:7]:7999' (RSA) to the list of known hosts.
remote: Enumerating objects: 4736, done.
remote: Counting objects: 100% (4736/4736), done.
remote: Compressing objects: 100% (3980/3980), done.
remote: Total 4736 (delta 733), reused 4552 (delta 627)
Empfange Objekte: 100% (4736/4736), 77.71 MiB | 13.03 MiB/s, done.
Löse Unterschiede auf: 100% (733/733), done.
warning: konnte nicht auf '/root/.config/git/attributes' zugreifen: Keine Berechtigung
bash-4.2$

In the last step i replace the file "git_known_hosts_with_port_7999" with the content from known_hosts of the webhosting user/project:
Code:
bash-4.2$ cat /var/www/vhosts/customer123123.www2.netzfabrik.eu/.ssh/known_hosts > /var/www/vhosts/customer123123.www2.netzfabrik.eu/.ssh/git_known_hosts_with_port_7999

After this, i can clone the repo via webinterface perfectly. I tested this solution on my Plesk Server with CentOS 7 and Plesk Obsidian.

Best
Giuliano
 
Back
Top