wsl无法使用window代理访问ssh的问题处理

  • 安装代理
bash 复制代码
sudo apt update
sudo apt install -y netcat-openbsd
  • 配置 ~/.ssh/config文件,没有则创建
  • 配置ssh公钥
bash 复制代码
# 输入一直回车即可
ssh-keygen -t ed25519
# 粘贴.pub文件中的密钥到你的github上的ssh-key配置中
cat ~/.ssh/id_ed25519.pub
  • 配置如下内容进行代理
bash 复制代码
Host github.com
  HostName github.com
  User git
  IdentityFile ~/.ssh/id_ed25519
  IdentitiesOnly yes
  ServerAliveInterval 60
  ServerAliveCountMax 3
  ProxyCommand nc -x 127.0.0.1:7890 %h %p
  • 无需重启,直接测试是否联通ssh -T git@github.com
  • 以上配置后为了使用claude code 安装插件使用
相关推荐
深念Y21 小时前
CPA-Auto池方案总结
人工智能·ai·自动化·路由·代理·账号·轮询
90后小陈老师2 天前
Windows 10 下 Gitee SSH 连接配置详解(附常见问题解决)
windows·gitee·ssh
dyxal2 天前
SSH本地端口转发完全解析:像“挖掘隧道”一样安全访问远程数据库
数据库·安全·ssh
我是小灰灰吖3 天前
Ubuntu 22.04 安装 SSH 服务与远程调试环境配置指南
qt·ubuntu·ssh
x864 天前
在 WSL 里把 Vulkan 跑起来
wsl·vulkan
Dontla4 天前
预置known_hosts如何防止中间人攻击(MITM)?(服务器公钥、服务器私钥)Runner、DNS污染、BGP劫持、同网络ARP欺骗、SSH握手
服务器·网络·ssh
Yan_chen6665 天前
SSH(Secure Shell)安全外壳协议详解
运维·网络协议·ssh
huainingning5 天前
锐捷ssh用户名密码登录
运维·ssh
@CLoudbays_Martin116 天前
网站被攻击,服务器都登录不了怎么办?
服务器·ssh·ddos
映翰通朱工6 天前
Windows 上位机 + EC3320:USB 转 CAN 通信实测(从接线到 SSH 收包)
windows·stm32·ssh