0
0

More than 1 year has passed since last update.

Windows10の標準OpenSSHのBad permission問題の解決方法

Posted at

状況

  • Powershellからsshしようとしても下記のエラーが出てしまう
  • VSCodeのRemoteSSHのためにWSLからではなくWindowsから接続できるようにしておきたい
PS > ssh foo
Bad owner or permissions on C:\\Users\\MY_USER/.ssh/config

解決方法

  • ファイルの置き場所はC:Users\MY_USER\.ssh\以下で良い
  • その中のconfigやkeyのパーミッションをプロパティから変えること

パーミッションの変更方法は、

  • Right click on file: Properties -> Security -> Advanced -> Disable Inheritance -> Remove all inherited permissions from this object
  • 全パーミッションが消えるはずなので、自分のユーザのみ追加しフルコントロールを与える(参考)
  • Microsoft Accountを使用しており自分のユーザ名がわからない場合は、netplwizを使用し、ユーザ名を特定する
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