Linux 家庭用 Windows サブシステムと Windows 環境を備えた家庭用 Windows サブシステム [閉じる]

Linux 家庭用 Windows サブシステムと Windows 環境を備えた家庭用 Windows サブシステム [閉じる]

私はgithubに接続しようとしましたが、エラーが発生し続けます。私は他のユーザーだと思います。

debug1: key_load_public: No such file or directory
debug1: identity file /home/solarmew/.ssh/id_rsa type -1

一つはあるでしょう。C:\Users\solar\.ssh\id_rsa.pub

切り替える方法やファイルにアクセスする方法がわかりません:(

ベストアンサー1

Windowsの「ホーム」ディレクトリ(たとえばC:\Users\YourName\)は、WSLホームディレクトリ(たとえば/home/yourname)ではありません。 Windows ホーム ディレクトリから WSL ホーム ディレクトリに SSH キーをコピーすると正常に動作します。

おすすめ記事