Windows 10 SSH keys

后端 未结 11 1682
难免孤独
难免孤独 2020-12-12 14:57

I am having a really hard time getting my SSH keys up and running after installing Windows 10. Normal method is create it and throw it in the user\'s account under .ssh. T

相关标签:
11条回答
  • 2020-12-12 15:17

    I'm running Microsoft Windows 10 Pro, Version 10.0.17763 Build 17763, and I see my .ssh folder easily at C:\Users\jrosario\.ssh without having to edit permissions or anything (though in File Explorer, I did select "Show hidden files, folders and drives"):

    The keys are stored in a text file named known_hosts, which looks roughly like this:

    0 讨论(0)
  • 2020-12-12 15:18

    WINDOWS: If you have git for windows installed go to its folder.

    Look in the bin directory. There is a sh.exe file. Run that.

    Then type:

    ssh-keygen -t rsa -C "your email here"

    Follow through instructions and then type:

    cat ~/.ssh/id_rsa.pub | clip

    It copies the key to your clipboard. Now you can paste that public key to the server side.

    0 讨论(0)
  • 2020-12-12 15:24

    Also, you can try (for Windows 10 Pro) Run Powershell as administrator and type ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

    0 讨论(0)
  • 2020-12-12 15:27

    I finally got it to work by running opening command line with "Run a Administrator" even though I was already admin and could create directory manually

    0 讨论(0)
  • 2020-12-12 15:28
    1. Open the windows command line (type "cmd" on the search box and hit enter).
    2. It'll default to your home folder, so you don't need to cd to a different one.
    3. Type ssh-keygen
    4. Follow the instructions and you are good to go
    5. Your ssh keys should be stored at chosed directory, the default is: /c/Users/YourUserName/.ssh/id_rsa.pub

    p.s.: If you installed git with bash integration (like me) open "Git Bash" instead of "cmd" on first step

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