<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Ssh on Hacper&#39;s Blog</title>
    <link>https://hacperme.com/tags/ssh/</link>
    <description>Recent content in Ssh on Hacper&#39;s Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <lastBuildDate>Tue, 31 Dec 2024 00:49:37 +0800</lastBuildDate>
    <atom:link href="https://hacperme.com/tags/ssh/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Github 仓库 ssh 连接失败处理</title>
      <link>https://hacperme.com/posts/notes/20241231_github_notes/</link>
      <pubDate>Tue, 31 Dec 2024 00:49:37 +0800</pubDate>
      <guid>https://hacperme.com/posts/notes/20241231_github_notes/</guid>
      <description>突然 ssh 连不上 github，无法拉取仓库代码，配置 https.proxy http.proxy 代理无效（可能我用的是 ssh 的原因）。然后看到 git 设置和取消代理 可以尝试将 ssh 端口修改为 443，</description>
      <content:encoded><![CDATA[<p>突然 ssh 连不上 github，无法拉取仓库代码，配置 https.proxy http.proxy 代理无效（可能我用的是 ssh 的原因）。然后看到 <a href="https://gist.github.com/laispace/666dd7b27e9116faece6">git 设置和取消代理</a> 可以尝试将 ssh 端口修改为 443，真救了老命了。</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># 创建 ~/.ssh/config 配置文件和写入如下配置</span>
</span></span><span class="line"><span class="cl"><span class="c1"># 将 ssh 端口修改为 443</span>
</span></span><span class="line"><span class="cl">Host github.com
</span></span><span class="line"><span class="cl">    Hostname ssh.github.com
</span></span><span class="line"><span class="cl">    Port <span class="m">443</span>
</span></span><span class="line"><span class="cl">    User git
</span></span></code></pre></td></tr></table>
</div>
</div>]]></content:encoded>
    </item>
  </channel>
</rss>
