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 安装插件使用
相关推荐
海棠AI实验室2 天前
VS Code Remote-SSH :原理、前置条件、配置套路与踩坑清单
运维·ssh
有想法的py工程师2 天前
PostgreSQL archive_command 场景下的 postgres 免密 SSH 配置与排查实录
数据库·postgresql·ssh
三雷科技3 天前
WSL 命令大全(完全指南)
虚拟化·wsl·windows虚拟机
李钢蛋3 天前
使用 SSH 隧道安全连接远程 MongoDB
安全·mongodb·ssh
理智.6293 天前
Windows 本地文件上传到 Linux 服务器的完整实践(scp/ssh),以及常见踩坑总结
linux·服务器·ssh
进击切图仔3 天前
新装 Ubuntu 20.04.6 中安装 ssh.server 功能
linux·ubuntu·ssh
BUTCHER54 天前
GitLab SSH 密钥配置
运维·ssh·gitlab
Honmaple4 天前
OpenClaw 远程访问配置指南:SSH 隧道与免密登录
运维·ssh
视觉AI5 天前
【踩坑实录】Windows ICS 共享网络下,国产化盒子 SSH 连接异常的完整分析
网络·windows·ssh
ZeroNews内网穿透5 天前
关于飞牛fnOS重要安全更新的提醒
运维·服务器·web安全·ssh