Saving ssh key fails

前端 未结 14 1087
予麋鹿
予麋鹿 2021-01-30 21:44

i just started a Git tutorial and I get to a deadend: I try to generate a rsa key part and it fails. I did this, in git bash:

ssh-keygen -t rsa -C \"myemail@myem         


        
相关标签:
14条回答
  • 2021-01-30 22:40

    If you prefer to use a GUI to create the keys

    1. Use Putty Gen to generate a key
    2. Export the key as an open SSH key
    3. As mentioned by @VonC create the .ssh directory and then you can drop the private and public keys in there
    4. Or use a GUI program (like Tortoise Git) to use the SSH keys

    For a walkthrough on putty gen for the above steps, please see http://ask-leo.com/how_do_i_create_and_use_public_keys_with_ssh.html

    0 讨论(0)
  • 2021-01-30 22:40

    I was using bash on windows that came with git. The problem was I assumed the tilde (~) which I was using to denote my home path would expand properly. It does work when using cd, but to fix this error I had to just give it the absolute path.

    0 讨论(0)
提交回复
热议问题