How to run ssh-add on windows?

后端 未结 7 573
夕颜
夕颜 2020-11-29 16:22

I\'m following #335 Deploying to a VPS , and near the end of the episode, we need to run ssh-add to give server access to github repo.

The problem is ho

7条回答
  •  执笔经年
    2020-11-29 17:06

    If you are not using GitBash - you need to start your ssh-agent using this command

    start-ssh-agent.cmd
    

    This is brutally buried in the comments and hard to find. This should be accepted answer.

    If your ssh agent is not set up, you can open PowerShell as admin and set it to manual mode

    Get-Service -Name ssh-agent | Set-Service -StartupType Manual
    

提交回复
热议问题