国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Failed to connect to the remote extension host server(Error: WebSocket close with status code 1006)

這篇具有很好參考價值的文章主要介紹了Failed to connect to the remote extension host server(Error: WebSocket close with status code 1006)。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

問題截圖

the socket connection to the remote host failed,vscode,ssh

解決辦法(第一種情況):

  • 首先,檢查遠程服務(wù)器上的 /etc/ssh/sshd_config里,有沒有允許端口轉(zhuǎn)發(fā):AllowTcpForwarding yes
  • 更改后,重啟 sshd服務(wù):systemctl restart sshd。
  • 然后,刪除~/.vscode-server目錄
  • 本地Vscode settings的user配置里,把remote.SSH.remoteServerListenOnSocket的勾去掉(因為remote配置那里這個remoteServerListenOnSocket是關(guān)掉的),Remote: Auto Forward Ports前面的勾確認是打開的。成功連接上以后,本地和遠程服務(wù)器的remote.SSH.remoteServerListenOnSocket的勾會自動打開。
  • 總結(jié):連接的雙方配置應(yīng)該是對稱的。先要保證服務(wù)器那邊sshd_config端口轉(zhuǎn)發(fā)打開,然后設(shè)置上remoteServerListenOnSocket都關(guān)閉,Remote: Auto Forward Ports都打開。成功連接上以后,remoteServerListenOnSocket的勾會自動打開,兩邊趁著現(xiàn)在ssh連接成功可以改,就都手動關(guān)了,否則又會出現(xiàn)連不上的問題。因為連不上的時候,remote那邊不讓改,就兩頭堵了。
  • the socket connection to the remote host failed,vscode,ssh

第二種情況:如果上面方法不行,那么就把遠程服務(wù)器上的openssh更新一下,yum update openssh.

-wget,curl一般不用更新。他們是遠程服務(wù)器上用來下載一些東西的,如果remote ssh擴展的輸出日志中顯示Downloading complete,我們就知道,其實wget,curl是沒事的,問題不出在這里。
the socket connection to the remote host failed,vscode,ssh

最后發(fā)現(xiàn)的第三種情況

  • ssh連不上的時候,settings里remote那邊的配置不讓改。
  • 實在不行,我把C:\Users\用戶名\AppData\Roaming\Code下的東西全刪了,然后把本地user配置里,remote.SSH.remoteServerListenOnSocket的勾去掉,因為remote那邊的remoteServerListenOnSocket的勾是去掉的,然后再連就好了。

最后,當(dāng)VScode連接成功后,日志為如下所示:

the socket connection to the remote host failed,vscode,ssh文章來源地址http://www.zghlxwxcb.cn/news/detail-771971.html

到了這里,關(guān)于Failed to connect to the remote extension host server(Error: WebSocket close with status code 1006)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • VSCode中使用Github Copilot,報錯 GitHub Copilot could not connect to server. Extension activation failed

    在VSCode中使用 Github Copilot 編程確實爽,一開始用就停不下來。 不過有時 Copilot 會莫名失效,出現(xiàn) GitHub Copilot could not connect to server. Extension activation failed: \\\"connect ETIMEDOUT xxxx\\\"的問題,著實令人抓狂。 參考各種資料,發(fā)現(xiàn)修改hosts文件即可解決。 具體方法是: 進入 C:WindowsSys

    2024年02月10日
    瀏覽(29)
  • kubectl命令報錯:Unable to connect to the server: dial tcp XXX:16443: connect: no route to host

    kubectl命令報錯:Unable to connect to the server: dial tcp XXX:16443: connect: no route to host

    前提 架構(gòu): keepalived+haproxy+kubernetes 問題說明 kubernetes集群好久不用了,今天打開集群執(zhí)行一個 kubectl get nodes 命令,報錯如下: Unable to connect to the server: dial tcp 192.168.2.XXX:16443: connect: no route to host 分析原因 出現(xiàn)這個問題幾種原因, 集群壞了:如果報錯的IP是master1的節(jié)點IP或虛

    2024年02月09日
    瀏覽(130)
  • 使用SpringBoot + JavaMailSender 發(fā)送郵件報錯 Mail server connection failed;Could not connect to SMTP host

    在 application.yml 中將郵件配置為 SSL 連接 yml 如果你使用的是 properties 文件,應(yīng)該修改為: properties 推薦一個 yml、properties 文件在線轉(zhuǎn)換的網(wǎng)站? 在線yaml轉(zhuǎn)properties-在線properties轉(zhuǎn)yaml-ToYaml.com ? 來源:https://www.cnblogs.com/songjilong/p/12577010.html

    2024年02月04日
    瀏覽(25)
  • kubesphere-- Unable to connect to the server: dial tcp 192.168.211.182:6443: no route to host

    kubesphere-- Unable to connect to the server: dial tcp 192.168.211.182:6443: no route to host

    ? ? ? ? 最近鼓搗kubesphere單節(jié)點安裝,部署服務(wù),使用流水線用的好好的,有兩次重啟服務(wù)器突然顯示kubesphere連接不上。初步排查,使用 kubectl get pods --all-namespaces 命令,顯示kubectl不可用,缺少路由。 Unable to connect to the server: dial tcp 192.168.211.182:6443: connect: no route to host ? ?

    2024年02月03日
    瀏覽(28)
  • The connection to the server localhost:8080 was refused - did you specify the right host or port?

    The connection to the server localhost:8080 was refused - did you specify the right host or port?

    問題背景 使用 kubeadm 安裝完成 kubetnetes 之后,將節(jié)點加入 master 之后,提示 The connection to the server localhost:8080 was refused - did you specify the right host or port? 問題解決 方法1 查看 /etc/kubernetes/ 目錄下是否存在 kubelet.conf 或者 admin.conf (個人理解只是文件名稱不同),然后將上述兩個

    2024年02月11日
    瀏覽(26)
  • 已解決—The connection to the server localhost:8080 was refused - did you specify the right host or port

    已解決—The connection to the server localhost:8080 was refused - did you specify the right host or port

    運行?kubectl get namespace時報錯: [root@ip-10-0-0-8 ~]# kubectl get namespace E0320 07:39:20.866425 32422 memcache.go:265] couldn\\\'t get current server API group list: Get \\\"http://localhost:8080/api?timeout=32s\\\": dial tcp 127.0.0.1:8080: connect: connection refused .... The connection to the server localhost:8080 was refused - did you specify the righ

    2024年02月12日
    瀏覽(54)
  • Jenkins踩坑:Failed to connect to repository : Error performing git command: git ls-remote -h http://17

    Jenkins踩坑:Failed to connect to repository : Error performing git command: git ls-remote -h http://17

    Jenkins搭建好之后,使用Jenkins新建構(gòu)建任務(wù),在填寫git地址時,一直報錯 截圖 期初我以為是憑據(jù)錯誤的原因,重復(fù)試了好久也沒有解決問題,后來才發(fā)現(xiàn),是由于我安裝Jenkins的服務(wù)器,沒有安裝git的客戶端,所以才無法鏈接git 安裝git客戶端命令: 安裝完git客戶端之后,Je

    2024年02月13日
    瀏覽(38)
  • 記一次k8s報錯:The connection to the server ip:6443 was refused - did you specify the right host or port?

    敲擊kubectl任意命令提示無法連接到10.75.78.212 的6443端口 kube-apiserver 默認端口無法連接,初步判斷 kube-apiserver 服務(wù)出現(xiàn)問題 這里簡單總結(jié)下kube-apiserver組件: kube-apiserver 是 Kubernetes 控制平面的樞紐,負責(zé)處理所有的 API 調(diào)用,包括集群管理、應(yīng)用部署和維護、用戶交互等,并

    2024年04月10日
    瀏覽(68)
  • Oracle ORA-28547:connection to server failed,probable Oracle Net admin error

    Oracle ORA-28547:connection to server failed,probable Oracle Net admin error

    使用Navicat連接oracle數(shù)據(jù)庫時報ORA-28547錯誤 因為Navicat自帶的oci.dll并不支持oracle11g,需要去官網(wǎng)下載支持的版本。 1.去oracle下載對應(yīng)的oci.dll文件 下載地址:Oracle Instant Client Downloads 可以用 11.2.0.4? 2.?復(fù)制剛下載下來的instantclient_11_2文件夾中的所有文件,粘貼到Navicat的instantc

    2024年04月18日
    瀏覽(29)
  • [Labtools 27-3733] Error during cs_server initialization: Failed to connect cs_server at TCP:localho

    記錄遇到過的問題: [Labtools 27-3733] Error during cs_server initialization: Failed to connect cs_server at TCP:localhost:3042 to hw_server at TCP:localhost:3121. 燒錄程序時,打開硬件目標找不到JTAG。 (此鏈接可見詳情)xilinx vivado 2019 驅(qū)動問題,Connecting to hw_server url TCP:localhost:3121,jtag連接不上 | 碼農(nóng)家園

    2024年02月02日
    瀏覽(21)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包