Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh and ssh-keygen default directories #115

Closed
WscriChy opened this issue Nov 2, 2014 · 1 comment
Closed

ssh and ssh-keygen default directories #115

WscriChy opened this issue Nov 2, 2014 · 1 comment

Comments

@WscriChy
Copy link

WscriChy commented Nov 2, 2014

When I create a key with ssh-keygen a new key is writren to C:\Users.ssh.

But when I use ssh I always get an error

Could not create directory '/home/<UserName>/.ssh'.

Seems like it tries to access /home/<UserName/.ssh path.

How to deal with this confusing behavior?

@elieux
Copy link
Member

elieux commented Apr 4, 2015

Edit /etc/nsswitch.conf and insert windows between db_home: and cygwin. References:
https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch
https://cygwin.com/faq/faq.html#faq.setup.home

@elieux elieux closed this as completed Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants