J'ai un key file located at `C:\private-key.pem` and J'ai un soft link to it on the Ubuntu subsystem: `~/.ssh/private-key.pem -> /mnt/c/private-key.pem`.
When J'essaie de ssh into some remote machine from the Ubuntu subsystem, I get:
```
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for '/home/artur/.ssh/private-key.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/artur/.ssh/private-key.pem": bad permissions
Permission denied (publickey).
```
- This began after the 1803 update for Windows: I was trying to use `chmod 400` for the key on `C:\` and within `~/.ssh` on WSL. I trying to set owner to me and remove all other users' ACLs on Windows for this key file, but every time I get `Permission denied` or
`Permissions XXXX for '/home/artur/.ssh/private-key.pem' are too open`.
Can anybody help me and explain how keys permissions should be configured on Windows and the Ubuntu subsystem?
Ubuntu on Windows 10 - SSH “Permissions xxxx for private key are too ouvrir
Re: Ubuntu on Windows 10 - SSH “Permissions xxxx for private key are too ouvrir
Solution that fonctionne pour moi in windows WSL (without changing file mode):
```
sudo ssh -i keyfile@ip
```
```
sudo ssh -i keyfile
```