Error creating .ssh folder on windows

0

When I run the command $ ssh-keygen -t rsa -C "[email protected]" I get the error message:

  

Generating public / private rsa key pair. Enter file in which to save   the key (/ c / Program Files (x86) /GNU/SSH/.ssh/id_rsa): Could   not create directory '/ c / Program Files (x86) /GNU/SSH/.ssh': No such   file or r directory Enter passphrase (empty for no passphrase):   Enter same passphrase again: Saving key "/ c / Program Files   (x86) /GNU/SSH/.ssh/id_rsa "failed: No such file or directory

I tried to run with admin and get the same message

    
asked by anonymous 01.02.2018 / 22:13

1 answer

0

Generate the .ssh key on windows. After manually creating the SSH folder in the / GNU directory (this folder is created after the default installation on windows)

AfterthisIexecutedthecommand:

  

ssh-keygen-trsa-C"[email protected]"

Generating the ssh key perfectly:

I can not explain why this windows bug exists, it did not happen to me in linux. In any case, problem solved.

    
01.02.2018 / 22:33