---
title: "Discussion on \"为SSH 设置代理，通过代理连接 GitHub\" | Hashnode"
description: "Discussion on \"为SSH 设置代理，通过代理连接 GitHub\". 通过代理连接 GitHub 可以通过修改 SSH 配置文件来实现。这通常需要设置 SSH 使用 SOCKS 或 HTTP 代理。你可以使用 ssh 命令通过代理进行连接。以下是如何在 SSH 配置文件中设置代理连接 GitHub 的步骤：\n1. 配置 SSH 代理\n要通过代理连接 GitHub，需要在 SSH 配置文件中进行设置。你可以使用 SOCKS 代理（例如通过 Shadowsocks 或 V2Ray）或 HTTP 代理（例如通过代理软件）。\n1.1 使用 SOCKS 代理（例如 Shad..."
url: "https://hashnode.com/posts/ssh-github/678dea39cc2d6bdb73f17ba8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [为SSH 设置代理，通过代理连接 GitHub](https://blog.jayinton.com/ssh-github?utm_source=hashnode&utm_medium=feed)

通过代理连接 GitHub 可以通过修改 SSH 配置文件来实现。这通常需要设置 SSH 使用 SOCKS 或 HTTP 代理。你可以使用 ssh 命令通过代理进行连接。以下是如何在 SSH 配置文件中设置代理连接 GitHub 的步骤： 1. 配置 SSH 代理 要通过代理连接 GitHub，需要在 SSH 配置文件中进行设置。你可以使用 SOCKS 代理（例如通过 Shadowsocks 或 V2Ray）或 HTTP 代理（例如通过代理软件）。 1.1 使用 SOCKS 代理（例如 Shad...

Jan 20, 2025 · 2 min read · blog.jayinton.com  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)
-   [#ssh](https://hashnode.com/tag/ssh)

## Written by

[Jayin Taung](https://hashnode.com/@jayin)

@jayin · Guangzhou,China

  
[View profile](https://hashnode.com/@jayin)

拥抱变化，持续输出

PHPer,Creator of ZTBCMS

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
