Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu windows linux子系统在哪里查找SSH密钥?_Ubuntu_Ssh_Location_Default_Windows Subsystem For Linux - Fatal编程技术网

Ubuntu windows linux子系统在哪里查找SSH密钥?

Ubuntu windows linux子系统在哪里查找SSH密钥?,ubuntu,ssh,location,default,windows-subsystem-for-linux,Ubuntu,Ssh,Location,Default,Windows Subsystem For Linux,我在Windows的Linux子系统上使用sftp和其他服务时遇到问题,因为我无法将服务指向正确的ssh文件夹 我一直在使用与linux相同的设置,通过在文件夹中按键放置: /home/myuser/.ssh/id_rsa 但是,这不是子系统上默认查找的sftp等文件夹!我查看了有关该主题的多篇文章,只找到了指向此设置的文章。要让他们在linux子系统上使用ssh密钥,正确的默认文件夹是: C:\Users\myuser\.ssh\id_rsa 如果您在子系统上,则路径为: /mnt/c/U

我在Windows的Linux子系统上使用sftp和其他服务时遇到问题,因为我无法将服务指向正确的ssh文件夹

我一直在使用与linux相同的设置,通过在文件夹中按键放置:

/home/myuser/.ssh/id_rsa

但是,这不是子系统上默认查找的sftp等文件夹!我查看了有关该主题的多篇文章,只找到了指向此设置的文章。

要让他们在linux子系统上使用ssh密钥,正确的默认文件夹是:

C:\Users\myuser\.ssh\id_rsa
如果您在子系统上,则路径为:

/mnt/c/Users/H52Z/.ssh/id_rsa

我希望这能解决每个一直在努力安装的人的问题。

可选C:\Users\WINDOWS\u USERNAME\AppData\Local\lxss\home\LINUX\u USERNAME\.ssh