5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VSCODE Remote DevelopmentでBad owner or permissionsが発生した場合の対処

Last updated at Posted at 2020-07-31

やりたかった事
Windows10からWindows10にSSH接続してVSCODEでリモート開発を行いたい。
接続先にはOpenSSHサーバーをインストールしており、PowerShellで「ssh ユーザー名@192.168.X.X」で接続が成功している。
しかしVSCODEの拡張機能(Remote Development)を使用してSSH接続しようとした際に以下のエラーが発生!

エラー内容
Bad owner or permissions on C:/Users/ユーザー名/.ssh/config

対処法

  1. VSCODEで設定を開く
  2. 「Remote」と検索
  3. Remote.SSH: Config File項目の欄にconfigファイルのフルパスを記入
    q1.png

バックスラッシュを2つ入れるのがミソらしい

参考資料
Bad Owner or Permissions on username.ssh\config file #3210

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?