This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enable-putty-support | |
| enable-ssh-support | |
| use-standard-socket | |
| default-cache-ttl 600 | |
| max-cache-ttl 7200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # WSL2 SSH Pageant | |
| export SSH_AUTH_SOCK="$HOME/.ssh/agent.sock" | |
| if ! ss -a | grep -q "$SSH_AUTH_SOCK"; then | |
| rm -f "$SSH_AUTH_SOCK" | |
| wsl2_ssh_pageant_bin="$HOME/.ssh/wsl2-ssh-pageant" | |
| if test -x "$wsl2_ssh_pageant_bin"; then | |
| (setsid nohup socat UNIX-LISTEN:"$SSH_AUTH_SOCK,fork" EXEC:"$wsl2_ssh_pageant_bin" >/dev/null 2>&1 &) | |
| else | |
| echo >&2 "WARNING: $wsl2_ssh_pageant_bin is not executable." | |
| fi |
NewerOlder