VS Code
Remote Keep asking for passphrase of SSH key
Set-Service ssh-agent -StartupType Automatic
Start-Service ssh-agent
Get-Service ssh-agenteval "$(ssh-agent -s)"if [ -z "$SSH_AUTH_SOCK" ]; then
# Check for a currently running instance of the agent
RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`"
if [ "$RUNNING_AGENT" = "0" ]; then
# Launch a new instance of the agent
ssh-agent -s &> .ssh/ssh-agent
fi
eval `cat .ssh/ssh-agent`
fiLast updated