Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.

Commit 18cf763

Browse files
Merge pull request #29 from VibroAxe/patch-1
Update README.md to readdress windows filesystem
2 parents 937e3d8 + 412589e commit 18cf763

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ In order to use `wsl-ssh-pageant` you must have installed `socat` and `ss` on yo
1111
For example, on Ubuntu you can install these by running: `sudo apt install socat iproute2`
1212

1313
### Installation
14-
1. Download latest version from [release page](https://github.com/BlackReloaded/wsl2-ssh-pageant/releases/latest) and copy `wsl2-ssh-pageant.exe` to your `$HOME/.ssh` directory or equivalent
14+
1. Download latest version from [release page](https://github.com/BlackReloaded/wsl2-ssh-pageant/releases/latest) and copy `wsl2-ssh-pageant.exe` to your windows home directory (or other location within the windows file system). Then simlink to your `$HOME/.ssh` directory for easy access
1515
```bash
16-
destination="$HOME/.ssh/wsl2-ssh-pageant.exe"
17-
wget -O "$destination" "https://github.com/BlackReloaded/wsl2-ssh-pageant/releases/latest/download/wsl2-ssh-pageant.exe"
16+
windows_destination="/mnt/c/Users/Public/Downloads/wsl2-ssh-pageant.exe"
17+
linux_destination="$HOME/.ssh/wsl2-ssh-pageant.exe"
18+
wget -O "$windows_destination" "https://github.com/BlackReloaded/wsl2-ssh-pageant/releases/latest/download/wsl2-ssh-pageant.exe"
1819
# Set the executable bit.
19-
chmod +x "$destination"
20+
chmod +x "$windows_destination"
21+
# Symlink to linux for ease of use later
22+
ln -s $windows_destination $linux_destination
2023
```
2124
2. Add one of the following to your shell configuration (for e.g. `.bashrc`, `.zshrc` or `config.fish`). For advanced configurations consult the documentation of your shell.
2225

@@ -97,6 +100,9 @@ gpg-connect-agent killagent /bye
97100
gpg-connect-agent /bye
98101
```
99102
103+
### Agent response times are very slow
104+
If ssh,ssh-add,gpg etc are very slow (~15-25 seconds) check that wsl2-ssh-pageant resides on the windows file system. This is due to an issue with the WSL interop documented [here](https://github.com/BlackReloaded/wsl2-ssh-pageant/issues/24) and [here](https://github.com/microsoft/WSL/issues/7591)
105+
100106
## Credit
101107
102108
Some of the code is copied from benpye's [wsl-ssh-pageant](https://github.com/benpye/wsl-ssh-pageant). This code shows how to communicate to pageant.

0 commit comments

Comments
 (0)