Skip to content

Instantly share code, notes, and snippets.

@vladinator1000
Created November 21, 2018 19:31
Show Gist options
  • Save vladinator1000/6356f9ca57315c158ee9d40960afca62 to your computer and use it in GitHub Desktop.
Save vladinator1000/6356f9ca57315c158ee9d40960afca62 to your computer and use it in GitHub Desktop.
@echo off
ssh-agent | grep -v echo | sed -e "s/^/@set /" | sed -e "s/;.*$//" - > call.cmd
call call.cmd
del call.cmd
ssh-add "%HOME%\.ssh\id_rsa"
@echo on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment