Automatically start ssh-agent in Windows Subsystem for Linux (WSL) – Ubuntu

Add the following to the end of your ~/.bashrc file, start a new prompt and you’re done!

if [ -z "$SSH_AUTH_SOCK" ] ; then
    eval `ssh-agent -s`
fi

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.