kinect1things
kinect1things

Reputation: 53

EINVAL: invalid argument, mkdir 'C:\Program Files\Microsoft VS Code\"C:'

I am attempting to update my Remote SSH config file, but i'm getting this error when i press 'F1' and click 'Remote-SSH: Open Configuration File'.

The extention is configured with this absolute path:

"C:\Users\me\.ssh\config"

Noticing the error is adding an extra quote in the directory path.

Screenshot of Error

Upvotes: 2

Views: 808

Answers (1)

JazzMalar
JazzMalar

Reputation: 1

I know this thread is old, but I just ran into the same problem and as there is no answer provided I thought my solution could potentially help someone in the future.

Now for the magic formula: Remove the quotes around the absolute file path in the remote extensions configuration.

C:\users\<username>\.ssh\config

When you copy the path of the config file using the windows built-in "Copy Path" you automatically get the quotes around the path so be sure to remove them after pasting it into the extensions configuration.

Upvotes: 0

Related Questions