<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Git on Net Boy</title>
    <link>https://lian.st/tags/git/</link>
    <description>Recent content in Git on Net Boy</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-gb</language>
    <lastBuildDate>Thu, 14 Nov 2024 11:35:08 +0800</lastBuildDate><atom:link href="https://lian.st/tags/git/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>ssh  connect to host github.com port 22  Connection refused</title>
      <link>https://lian.st/posts/cb6e0c09/</link>
      <pubDate>Thu, 14 Nov 2024 11:35:08 +0800</pubDate>
      
      <guid>https://lian.st/posts/cb6e0c09/</guid>
      
      <description>&lt;h2 id=&#34;前提&#34;&gt;前提&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;首選確認Deploy Key添加正確&lt;/li&gt;
&lt;li&gt;確認倉庫設定沒有問題&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;報錯訊息&#34;&gt;報錯訊息&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;➜  ~ git clone git@github.com:euiuu/life-blog.git
正在克隆到 &amp;#39;life-blog&amp;#39;...
ssh: connect to host github.com port 22: Connection refused
fatal: 無法讀取遠程倉庫。

請確認您有正確的訪問權限並且倉庫存在。
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;解決方法&#34;&gt;解決方法&lt;/h2&gt;
&lt;p&gt;According to &lt;a href=&#34;https://help.github.com/articles/using-ssh-over-the-https-port/&#34;&gt;this&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Sometimes, firewalls refuse to allow SSH connections entirely. If using HTTPS cloning with credential caching is not an option, you can attempt to clone using an SSH connection made over the HTTPS port. Most firewall rules should allow this, but proxy servers may interfere&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
