I was trying to use an ssh instance and I received l'erreur suivante, which is odd since J'ai essayé de change the permission using `chmod`, but that didn't seem to work as permissions were still `777`:
```
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for 'privkey.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 "privkey.pem": bad permissions
Permission denied (publickey).
```
J'ai ouvert `git bash` and was able to SSH into my instance with no problem, and permissions were not `777` aussi.
Unable to changer fichier permissions on Ubuntu Bash for Windows 10
Re: Unable to changer fichier permissions on Ubuntu Bash for Windows 10
Si vous êtes referencing files in the Windows système de fichiers, they do not, par défaut, retain Linux permissions.
Cependant, there's a way to enable that. Edit or create (using `sudo`) `/etc/wsl.conf` and add the following:
```
[automount]
options = "metadata"
```
Shut down all WSL instances and restart an instance, and any `chmod` changes are now retained.
Cependant, there's a way to enable that. Edit or create (using `sudo`) `/etc/wsl.conf` and add the following:
```
[automount]
options = "metadata"
```
Shut down all WSL instances and restart an instance, and any `chmod` changes are now retained.