title: Could not establish connection to "hostname". (Remote-SSH problem in VSCode ) (CentOS7)
body: <p><strong>[SOLVED!!]</strong></p>
  <ul>
  <li><strong>Server OS:</strong> CentOS Linux 7</li>
  <li><strong>VSCode version (local):</strong> 1.59.1</li>
  </ul>
  <p>I connected to my server by ssh</p>
  <pre><code>ssh ...@ln01.twcc.ai
  </code></pre>
  <p>I try to open VSCode by local, and using <strong>Remote-SSH -&gt; Connected to SSH -&gt; type ...@ln01.twcc.ai</strong></p>
  <p>Then got <strong>Could not establish connection to &quot;@ln01.twcc.ai&quot;.</strong> Error block
  and output is like as below</p>
  <pre><code>[11:37:51.572] Log Level: 2
  [11:37:51.574] remote-ssh@0.65.7
  [11:37:51.574] win32 x64
  [11:37:51.575] SSH Resolver called for &quot;ssh-remote+...&quot;, attempt 1
  [11:37:51.575] &quot;remote.SSH.useLocalServer&quot;: false
  [11:37:51.575] &quot;remote.SSH.showLoginTerminal&quot;: false
  [11:37:51.575] &quot;remote.SSH.remotePlatform&quot;: {}
  [11:37:51.575] &quot;remote.SSH.path&quot;: undefined
  [11:37:51.575] &quot;remote.SSH.configFile&quot;: undefined
  [11:37:51.575] &quot;remote.SSH.useFlock&quot;: true
  [11:37:51.576] &quot;remote.SSH.lockfilesInTmp&quot;: false
  [11:37:51.576] &quot;remote.SSH.localServerDownload&quot;: auto
  [11:37:51.576] &quot;remote.SSH.remoteServerListenOnSocket&quot;: false
  [11:37:51.576] &quot;remote.SSH.showLoginTerminal&quot;: false
  [11:37:51.576] &quot;remote.SSH.defaultExtensions&quot;: []
  [11:37:51.576] &quot;remote.SSH.loglevel&quot;: 2
  [11:37:51.576] SSH Resolver called for host: ssh ...@ln01.twcc.ai
  [11:37:51.576] Setting up SSH remote &quot;ln01.twcc.ai&quot;
  [11:37:51.592] Using commit id &quot;...&quot; and quality &quot;stable&quot; for server
  [11:37:51.595] Install and start server if needed
  [11:37:56.696] Checking ssh with &quot;ssh -V&quot;
  [11:37:56.726] &gt; OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
  
  [11:37:56.729] Running script with connection command: ssh -T -D 53574 &quot;ssh ...@ln01.twcc.ai&quot; bash
  [11:37:56.731] Terminal shell path: C:\Windows\System32\cmd.exe
  [11:37:56.948] &gt; ]0;C:\Windows\System32\cmd.exe
  [11:37:56.948] Got some output, clearing connection timeout
  [11:37:57.376] &gt; 
  
  [11:37:59.421] &gt; ssh ...@ln01.twcc.ai: Permission denied (publickey,gssapi-keyex,gssapi-with
  &gt; -mic,keyboard-interactive).
  [11:37:59.434] &gt; 程序嘗試寫入到一個不存在的管道。
  [11:38:00.713] &quot;install&quot; terminal command done
  [11:38:00.714] Install terminal quit with output: 程序嘗試寫入到一個不存在的管道。
  [11:38:00.714] Received install output: 程序嘗試寫入到一個不存在的管道。
  [11:38:00.714] Failed to parse remote port from server output
  [11:38:00.715] Resolver error: Error: 
      at Function.Create (c:\Users\ASUS\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.7\out\extension.js:1:64659)
      at Object.t.handleInstallOutput (c:\Users\ASUS\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.7\out\extension.js:1:63302)
      at Object.t.tryInstall (c:\Users\ASUS\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.7\out\extension.js:1:415135)
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
      at async c:\Users\ASUS\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.7\out\extension.js:1:294918
      at async Object.t.withShowDetailsEvent (c:\Users\ASUS\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.7\out\extension.js:1:406463)
      at async Object.t.resolve (c:\Users\ASUS\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.7\out\extension.js:1:295994)
      at async c:\Users\ASUS\.vscode\extensions\ms-vscode-remote.remote-ssh-0.65.7\out\extension.js:127:110656
  [11:38:00.718] ------
  </code></pre>
  <hr />
  <p><strong>Summary</strong></p>
  <ul>
  <li>When I try to remote-ssh by local VSCode, got the <strong>Disconnected from SSH</strong> Error</li>
  </ul>
  <p><a href="https://i.stack.imgur.com/Gb4lG.jpg" rel="nofollow noreferrer">Error Block</a></p>