LoginSignup
3
5

More than 3 years have passed since last update.

【VSCode Remote Development】エラー対処:Finding installed ssh failed: The "path" argument must be of type string. Received type undefined

Posted at

環境

現象

Remote Developerをインストール後、仮想環境に接続しようとしたら以下のエラーが表示された。

remote-ssh@0.47.2
win32 ia32
SSH Resolver called for "ssh-remote+localhost", attempt 1
SSH Resolver called for host: localhost
Setting up SSH remote "localhost"
Using commit id "" and quality "stable" for server
Finding installed ssh failed: The "path" argument must be of type string. Received type undefined
Resolver error: The "path" argument must be of type string. Received type undefined

localhost はホスト名。
今回はVagrantの仮想環境に接続するため、.ssh\configは以下の通り。

Host localhost
  HostName localhost
  User vagrant
  Port 2222
  IdentityFile [ your private_key path ]

原因

Finding installed ssh failed との記述があるので、VS CodeからPC上のssh.exe が見つからない模様。

Finding installed ssh failed: The "path" argument must be of type string. Received type undefined
Resolver error: The "path" argument must be of type string. Received type undefined

解決策

「設定 > 拡張機能 > Remote SSH > Path」に、ssh.exeのPathを追記する。
sshPath.JPG

左下の「><」から再度リモート接続を試みる。
sshRemote.JPG

無事に接続できました。
sshRemote2.JPG

以上

3
5
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
3
5