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 安装插件使用
相关推荐
bingyan03711 天前
squid-基于rockylinux8配置内网代理访问阿里云软件源
阿里云·代理·squid·软件源
特别关注外国供应商2 天前
SSH PrivX™ OT 案例 - 某船舶运营商为数千艘船舶实现了远程访问,用于诊断、维护和物联网数据采集
物联网·ssh·数据采集·ad·远程访问·多因素身份验证·privx
仙俊红2 天前
关于ssh免密登录
运维·ssh
特别关注外国供应商2 天前
SSH 的 PrivX OT 工业安全远程访问 (ISRA) 被 分析机构 Industrial Cyber 认可
人工智能·网络安全·ssh·特权访问管理·工业安全远程访问·privx·ot 访问安全
wd5i8kA8i2 天前
自研多线程 SSH 极速文件传输助手(附 GitHub 源码)
运维·ssh·github
DoUfp0bgq3 天前
解决RDK X5(ARM64架构)板卡Remote-SSH运行Antigravity AI崩溃(SIGILL):Samba网络盘本地挂载方案
人工智能·架构·ssh
程序猿编码3 天前
eBPF代理:让SSH进程“溯源”,找到背后的客户端IP
linux·tcp/ip·ssh·ebpf
Learn-Share_HY3 天前
[IT Network]如何在cisco packet tracer建立ssh的連線?
ubuntu·ssh·switch·cisco·networking·packettracer·networktutorial
数据知道3 天前
claw-code 源码详细分析:Remote / SSH / Teleport / Deep Link——运行时分支爆炸怎样用「模拟模式」先收束状态机?
运维·ai·ssh·claude code
Irene19913 天前
前端开发中,WSL和本地开发的区别(本地项目,PowerShell和Bash均可执行npm命令,推荐使用 PowerShell)
wsl·本地开发