VS Code Mac 遠程連接報錯:Failed to parse remote port from server output

出錯版本

SSH-Remote:0.65.7

完整報錯信息
bash: line 1: _exitcode: command not found
bash: line 2: syntax error near unexpected token `elif'
bash: line 2: ` elif [[ $ALLOW_CLIENT_DOWNLOAD == "1" ]]; then'
-sh: 4: function: not found
-sh: 69: [[: not found
-sh: 90: [[: not found
-sh: 155: Syntax error: "(" unexpected (expecting "then")
Transferred: sent 18684, received 4372 bytes, in 0.2 seconds
Bytes per second: sent 79578.5, received 18621.1
local-server-1> ssh child died, shutting down

[19:03:59.174] Failed to parse remote port from server output
[19:03:59.176] Resolver error: Error: 
解決方案

Remote SSH -> Extension Setting -> "remote.SSH.useLocalServer": false


Mac版本的vscode把這里的勾去掉
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容