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?

Visual Studio Code Remote - SSHの0.117.1にてリモートマシンへの接続に失敗する

Posted at

はじめに

Visual Studio CodeのRemote - SSHを愛用しているのですが、0.117.0から0.117.1にアップデートすると、Linuxマシンに接続できないエラーが発生しました。

原因

configファイルの書き方が原因でした。

Host user1@1.2.3.4
    HostName 1.2.3.4
    User user1
Host user2@1.2.3.4
    HostName 1.2.3.4
    User user2

上記の書き方だと、0.117.1以降では接続時に以下のように解釈されるようです。

user1@user1@1.2.3.4

そのため、@を-に置き換えました。

Host user1-1.2.3.4
    HostName 1.2.3.4
    User user1
Host user2-1.2.3.4
    HostName 1.2.3.4
    User user2

さいごに

Remote - SSHのRelease Noteをまだ確認できていませんが、とりあえず接続に失敗する問題は解決できました。

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?