3
votes

I have connected Visual Studio 2017 to SSH Server (Windows 10 Ubuntu Bash).

While compiling I got an error:

F:\Program Files (x86)\Microsoft Visual Studio 2017\Common7\IDE\VC\VCTargets\Application Type\Linux\1.0\Linux.Common.targets(89,5): error : Could not create directories, mkdir exit code: 1

User in Ubuntu have permission to create directory.

2
Interesting question... A quick guess... Authentication is failing and you can't write to the filesystem. Maybe review Visual C++ for Linux Development on MSDN.jww
Glad you solved it! Would you please move the solution to an answer instead? That way others will know you no longer need help. After a few days, the system will let you accept that answer (the checkmark). Check out the tour for more tips. Happy hacking!cxw
The same error, but with another reason and another solution: Move your project folder from Cloud-sync to common hard drive folder.Eugene Tusmenko

2 Answers

1
votes
  1. Install this:

    sudo apt-get install openssh-server g++ gdb gdbserver

  2. Reinstall ssh-server by this: https://superuser.com/questions/1111591/how-can-i-ssh-into-bash-on-ubuntu-on-windows-10

  3. Create new user and add this user to sudo group.
0
votes

In my case this error happens because subsystem don't have home folder for current user. To create folder do this in terminal:

mkhomedir_helper username