• 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

Issue write (github.com): Connection refused: port 22

malisaeed

New Pleskian
Server operating system version
Ubuntu 20.04
Plesk version and microupdate number
18.0.57 #5
Hi,
Suddenly all subscription's sites Git Extension stopped listing new pushes and when i am trying to pull or link repository to site i am getting below Error as below:

Bash:
Cloning into bare repository '/var/www/vhosts/mywebsite.com/git/plesk-git-module-test.git'...
Server at 'github.com' is seen for the first time.
Adding its public key to the list of known hosts in '/var/www/vhosts/mywebsite.com/.ssh/git_known_hosts'.
write (github.com): Connection refused
write (github.com): Connection refused
write (github.com): Connection refused
write (github.com): Connection refused
Failed to gather public SSH host key for the 'github.com'.
Known hosts file '/var/www/vhosts/mywebsite.com/.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.

I tried following steps but nothing worked.
  1. with command
    Code:
    ssh -T -ai id_rsa_cda11f6f-ceca-620f-6218-637b5949ac03 [email protected]
    Response:
    ssh: connect to host github.com port 22: Connection refused
  2. With port 443 ,Github allows to connect
    Code:
    ssh -T -p 443 -i id_rsa_cda11f6f-ceca-620f-6218-637b5949ac03 [email protected]
    Response:
    Hi myWebsite/ANDP! You've successfully authenticated, but GitHub does not provide shell access.
  3. i have tried removing known_host file as well.
  4. inspect the firewall and found port 22 is open , (apparently i am performing these steps connected with server via ssh that means SSH port is open)
  5. Tried with same repository on another plesk server and that worked perfectly
No matter what I've tried, so far unfortunately without success.

I would therefore be very grateful for any tip or solution to solve this issue.

Regards.
 
Back
Top