Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Powershell asking for git RSA passphrase on every pull instead of on startup?

I've installed PoshGit and I've set up my RSA key with github and in my ~\.ssh folder, but PowerShell still prompts me to enter a passphrase on every pull/push. I've followed all the instructions given here. My powershell profile looks like so:

$env:path += ";" + (Get-Item "Env:ProgramFiles(x86)").Value + "\Git\bin"
. 'C:\Users\Caleb\Documents\WindowsPowerShell\Modules\posh-git\profile.example.ps1'
cd ~\Documents\GitHub\travefy

Here's what happens. How do I get it to only ask me on startup?

enter image description here

like image 561
Caleb Jares Avatar asked May 08 '13 16:05

Caleb Jares


2 Answers

It turns out I need to run

> ssh-add

I'm not sure why this wasn't mentioned in any of the docs on github.com.

like image 98
Caleb Jares Avatar answered Sep 28 '22 20:09

Caleb Jares


May you need to configure Git to use the Windows 10 implementation of OpenSSH by issuing the following command in Powershell:

git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe

This worked for me. Source: danieldogeanu.

like image 20
pascalre Avatar answered Sep 28 '22 19:09

pascalre