Where does linux subsystem for windows look for SSH keys?

Esben Eickhardt

I have had problems using sftp and other services on the Linux Subsystem for Windows, as I have not been able to point the services to the correct ssh-folder.

I have been using the same setup as in linux by placing by keys in the folder:

/home/myuser/.ssh/id_rsa

However, this is not the folder that sftp etc. look in by default on the subsystem! I have looked at multiple posts on the topic, and only found posts pointing to this setup.

Esben Eickhardt

The correct default folder to place your ssh-key in for them to work on the subsystem for linux is:

C:\Users\myuser\.ssh\id_rsa

And if you are on the subsystem the path is:

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

I hope this solves the problem for eveyone who has also been struggeling with the setup.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Using Jupyter with Windows Subsystem for Linux

Installing Apache on Windows Subsystem for Linux

Where does Eclipse look for eclipse.ini under Linux

GPRBuild does not find gprconfig when called from the Windows Subsystem for Linux

ssh-agent reset in Windows Subsystem for linux (WSL)

On Windows Linux Subsystem, the Android SDK directory does not exist

Threading Differences in Linux Subsystem For Windows

Python Venv with Windows Linux Subsystem

Cygwin/X and Windows Subsystem for Linux

Where is the Linux Subsystem's filesystem located in Windows 10?

Windows Subsystem for Linux & SSH Port Forwarding

ssh-agent reset in Windows Subsystem for linux (WSL)

Windows Subsystem Linux VSCode path

OpenZFS on Windows Subsystem for Linux

SSH linux subsystem windows 10

Why does ssh look for keys in /root/.ssh when run with sudo?

vpython not working on windows subsystem for linux

Where is ~/.bash_profile located in Windows Subsystem for Linux?

Does Windows cache SSH keys?

What are the limitations of the Windows Subsystem for Linux?

How to SSH into Azure Ubuntu 16x from Windows Subsystem for Linux

How to install Linux subsystem for Windows

Linux Subsystem for Windows

Does the Windows subsystem for Linux creates a virtual network?

GUI for Windows Subsystem for Linux

Webpack does not run in Windows Subsystem for Linux

Why does tkinter X program work through SSH with MobaXterm, but give an error when using SSH through Windows Subsystem for Linux?

Does anybody know how to get github ssh to work CORRECTLY on WSL (Windows Subsystem for Linux) in December of 2019

Troubleshooting ssh "Connection timed out" with Linux for Windows subsystem