Skip to main content
  1. Errors/

Setting up SSH tunnel

60 words·1 min
ssh
Table of Contents

Error 提示
#

VSCode remote ssh 连接服务器,卡在> Setting up SSH Host xx;:Setting up SSH tunnel

Solution
#

进入设置页面,找到Remote.SSH:Enable Dynamic Forwarding。取消该功能

Remote-ssh:settings内的选项

> Whether to use SSH dynamic forwarding to allow setting up new port tunnels over an existing 
SSH connecting. When this is used, a password only needs to be entered once for each window.

使用SSH动态转发以允许在现有SSH连接上设置新的端口隧道。使用此选项时,每个窗口只需输入一次密码。

  • 当remote ssh配置成功时,vscode一直在等待SSH隧道的建立。
  • 而远端linux方面我并没有开启ssh tunnel的使能,所以才造成了一直未响应。

Related

Awesome Command Line
416 words·2 mins
command
View Listening Ports # ss -tulnp | grep <port_number> Format Json # Unformatted json data
MySQL Error
45 words·1 min
MySQL
utf8mb4 # XShelll 数据库查询,中文变成问号
Running pip as the 'root' user can result in broken permissions
194 words·1 min
Python
The warning you’re seeing is advising against using pip as the ‘root’ user.
git commit & push failed
50 words·1 min
Git
git push 延迟问题 # 清除本地缓存。重新提交上传
Upgrade openssh version 9.0 on centos7
200 words·1 min
Linux
Upgrade OpenSSH to 9.