代理配置
~/.ssh/config 文件内容
# for windows
ProxyCommand "D:\Develop\Git\mingw64\bin\connect.exe" -S 127.0.0.1:1080 -a none %h %p
# for linux
# ProxyCommand nc -X connect -x 127.0.0.1:1080 %h %p
Host github.com
User git
Port 22
Hostname github.com
TCPKeepAlive yes
Host ssh.github.com
User git
Port 443
Hostname ssh.github.com
TCPKeepAlive yes
SSH-agent
# 绑定到bash
ssh-agent bash
# 导入私钥
ssh-add ~/.ssh/github_ed25519
ssh-add ~/.ssh/server_ed25519