• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

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