Error while creating . ssh folder in windows

Asked

Viewed 1,039 times

1

When I execute the command $ ssh-keygen -t rsa -C "[email protected]" 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 o 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 administrator and get the same message

  • Utilize sudo ssh-keygen ...

  • But what about the vestments like the email address ?

  • would be in a second step ?

  • I am receiving the message: Could not create directory '/c/Program Files (x86)/GNU/SSH/. ssh': No such file or directory

  • I have to create that folder ?

  • remembering that I am using windows Administrator mode

  • Funny... what is the value of $HOME? That folder .ssh should be in the $HOME user, not in program files

  • C: Users alex.jose.silva.ssh has nothing!

  • I used the default installation!

  • 1

    This issue is not about artifact versioning or communication/use of Github. There’s no reason to have such tags

  • 1

    Nor does it make sense to have git, it being analyzed individually

Show 6 more comments

1 answer

0


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

inserir a descrição da imagem aqui

After that I executed the command:

ssh-keygen -t rsa -C "[email protected]"

perfectly generating ssh key:

inserir a descrição da imagem aqui

I can not explain why in windows there is this bug, did not happen with me on linux. Anyway, problem solved.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.