0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VSCodeのRemote-SSHがうまくいかない

Posted at

事象(解決したいこと)

コマンドプロンプトとかからはSSH接続できるんだけど、VSCode拡張機能のRemote-SSHで上手くいかない。

特に、ssh@...まで打った後に
image.png
でOS選択すると、以下のように「Could not establish connection to "...".」と怒られる(なので、この次のパスワード入力まで行かない)。
image.png

ちなみに、configファイルはそれっぽい内容になってた。
image.png

原因と対処

configファイルが適切に読み込まれてないっぽいので、
image.png
Remote-SSHのConfig Fileパス設定のところでさっき開いたconfigファイルのフルパスを入れたら接続できた。
image.png

その他

ちなみに、以下とかそれっぽい事象の記事はいくつか見つけたけど、見つけられたのが「~/.vscode-server/を削除」とかで、削除するの嫌だなぁとか思いつつRemote-SSHの設定で解決できたというのが今回の記事っす:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?