Skip to content

Commit 6b150eb

Browse files
committed
Add key to ssh-agent
1 parent 09f31e2 commit 6b150eb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

GitSetup.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ function SetupSSH
136136
New-item $sshPath -itemType directory
137137
Set-itemProperty -Path $sshPath -Name Attributes -Value ([System.IO.FileAttributes]::Hidden)
138138
}
139-
ssh-keygen.exe -t rsa -b 4096 -f $sshKey
139+
ssh-keygen.exe -t rsa -b 4096 -f $sshKey
140+
ssh-add -k $sshKey
140141
}
141142
catch
142143
{

0 commit comments

Comments
 (0)