Skip to main content

Setting up SSH tunnel

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的使能,所以才造成了一直未响应。