How to access linux/Ubuntu files from Windows 10 WSL?

mpen

This question answers how to access Windows files from Ubuntu Bash, but how can I do the opposite?

Specifically, I need to access my SSH key from Windows which is located at /home/mark/.ssh/id_rsa under Bash.

Richard Turner

PM for Windows Command-Line here:

Updated October 2019: Updating the response below to reflect the newly added ability to directly access distros' Linux files via the newly integrated P9 server in Win10 1903 (and later).

IMPORTANT: Spelunking through the Windows filesystem to access Linux files has and will continue to be unsupported and STRONGLY recommended against! To understand why, please read this post

So how does one access Linux files using Windows tools (e.g. notepad, VS/VScode, etc.)? Previously, you couldn't, but starting in Windows 10 1903 we (finally!) expose your distros' filesystems to Windows via a P9 fileserver. We've also published an in-depth video discussing how this works! You can also read a summary of this new feature in this blog post

enter image description here

Look forward to hearing how you get on with this feature. If you find any problems, please file issues on the WSL GitHub repo here: https://github.com/Microsoft/wsl.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Create folder from Windows then access from Bash in Windows 10 WSL

How to set the `WSL` password from Windows 10?

How can I get access to files transferred from Windows to WSL-2 Ubuntu?

Access downloaded files from WSL

how to access windows localhost from wsl2?

How to set default shell to WSL bash for SSHing from Windows 10 machine to another Windows 10 machine (VM)?

How to access encrypted Ubuntu 16.04 files from Windows 10 in a dual boot system?

windows 10, how to access files from system partition when hd connected externally

How can I programmatically remove recent files from Quick Access in Windows 10?

How can WSL have access to Internet when the GlobalProtect VPN is activated on Microsoft Windows 10?

How to access files on Windows from Ubuntu?

How can I access my Windows file system files under the WSL Ubuntu app?

How to synchronize code files on windows with WSL/linux?

How to run a command on wsl startup from wsl config files?

I run mysqld on Windows 10, how do I connect to its port from WSL

How do I access my Windows directory from docker running on wsl?

How to access to the web server which running on WSL(Windows Subsystem for Linux) from local network

How to access Jupyter notebook stored in Windows when Jupyter runs from Ubuntu WSL?

How do you get permission to drop files in your wsl2 instance from Windows?

How to connect to windows postgres Database from WSL

How to SSH into WSL from Windows on the same machine

SSH'ing from windows 10 into wsl2 ubuntu

Access Postgresql database from WSL2 on windows in tableplus

How to access my Windows 10 machine from Ubuntu?

How to access to container docker from browser in windows 10

Windows 10: how to prevent File Explorer from opening .IMG files?

How to Recover Files from Windows 10 Write-Protected Disk

How to view FAT32 Ubuntu files from Windows 10?

How can I access files on an Android from Windows 7?