How to run ssh-add on windows?

后端 未结 7 600
夕颜
夕颜 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

    In order to run ssh-add on Windows one could install git using choco install git. The ssh-add command is recognized once C:\Program Files\Git\usr\bin has been added as a PATH variable and the command prompt has been restarted:

    C:\Users\user\Desktop\repository>ssh-add .ssh/id_rsa
    Enter passphrase for .ssh/id_rsa:
    Identity added: .ssh/id_rsa (.ssh/id_rsa)
    
    C:\Users\user\Desktop\repository> 
    

提交回复
热议问题