Peter Reavy

Fixing ‘Could not create directory’ error on Cygwin SSH

Posted in Uncategorized by Peter Reavy on May 22, 2012

Running Cygwin’s SSH has always given me the error:

Could not create directory '/home/myusername/.ssh'.

This web page has the solution:
http://www.mtu.net/~engstrom/ssh-faq.php

Edit your /etc/passwd file which on Windows is likely to be located somewhere like C:\cygwin\etc.

The passwd file is delimited by colons :. For the line representing your user account, change the field with your home directory:

/home/myusername

to something like

/cygdrive/c/Users/myusername

Voilà.

Advertisements

3 Responses

Subscribe to comments with RSS.

  1. kevin said, on May 20, 2013 at 5:01 pm

    thank you for posting this.

  2. romina said, on July 5, 2013 at 10:57 pm

    thank youuuuu so much, it was driving me crazy ❤

  3. Chinmay Dabral said, on May 6, 2014 at 11:18 am

    Thanks.


Comments are closed.