Files
System/MacBook/Vscode配置特殊SSH协议.md
offends d12a206210
Some checks failed
continuous-integration/drone Build is failing
synchronization
2025-08-25 16:02:49 +08:00

37 lines
663 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

> 本文作者:丁辉
# Vscode配置特殊SSH协议
> 连接过老版本的服务器时有些服务器SSH会报错解决方法如下
打开 vscode ssh 配置文件
```bash
## START GITPOD INTEGRATION
## This section is managed by Gitpod. Any manual changes will be lost.
Include "gitpod/config"
## END GITPOD INTEGRATION
#普通
Host 192.168.1.1
HostName 192.168.1.1
User root
#带端口
Host 192.168.1.2
HostName 192.168.1.2
Port 22
User root
#特殊协议
Host 192.168.1.3
HostName 192.168.1.3
User root
Host *
KexAlgorithms +diffie-hellman-group-exchange-sha1
HostKeyAlgorithms +ssh-rsa
ProxyCommand nc -X connect -x 127.0.0.1:15732 %h %p
```