This commit is contained in:
36
MacBook/Vscode配置特殊SSH协议.md
Normal file
36
MacBook/Vscode配置特殊SSH协议.md
Normal file
@@ -0,0 +1,36 @@
|
||||
> 本文作者:丁辉
|
||||
|
||||
# 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
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user