LoginSignup
0
0

More than 1 year has passed since last update.

Visual Studio Codeでremote SSHできない

Posted at

こちらを参考に、VSCodeでremote SSH接続しようとしたところ、ハマったのでメモ。
https://qiita.com/nlog2n2/items/1d1358f6913249f3e186
.ssh/configの設定を最小限にしたところできた。

.ssh/configに設定を追記

/Users/ユーザ名/.ssh/config に以下のように追記した。

Host remote(適当に名前を付ける)
  HostName <接続先のPCのipAddress>
  User <接続先のPCのユーザ名>
  Port 2222
  UserKnownHostsFile /dev/null
  PreferredAuthentications publickey
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile /Users/ユーザ名/.ssh/<ファイル名>
  IdentitiesOnly yes
  LogLevel FATAL

接続をしようとしたところ、エラー

プロセスが、存在しないパイプに書き込もうとしました。
(省略)

.ssh/configの設定を最小限に修正

Host remote(適当に名前を付ける)
  HostName <接続先のPCのipAddress>
  User <接続先のPCのユーザ名>
 IdentityFile /Users/ユーザ名/.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