microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.67k stars 289 forks source link

SSH keys not available in dev container running on Windows/WSL #4113

Closed mattoni closed 3 years ago

mattoni commented 3 years ago

Steps to Reproduce:

  1. Open dev container
  2. Attempt to pull repo cloned with SSH
  3. Get the following error:
    
    git@gitlab.com: Permission denied (publickey,keyboard-interactive).
    fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.


`echo $SSH_AUTH_SOCK` inside the container is also blank, despite being set in WSL. However, it is not set in the host OS (Windows)

I've set ssh-agent to auto start on both sides as well, and running `ssh-add -l` on both host and in WSL works as expected, showing the proper keys. When run in the docker container, I get `Could not open a connection to your authentication agent.`.

**devcontainer.json**

{ "name": "Node.js & TypeScript", "build": { "dockerfile": "Dockerfile", // Update 'VARIANT' to pick a Node version: 10, 12, 14 "args": { "VARIANT": "14" } },

// Set default container specific settings.json values on container create. "settings": { "terminal.integrated.shell.linux": "/bin/bash" },

// Add the IDs of extensions you want installed when the container is created. "extensions": [ "dbaeumer.vscode-eslint", "ms-vscode.vscode-typescript-tslint-plugin", "kumar-harsh.graphql-for-vscode", "esbenp.prettier-vscode" ],

// Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [3000],

// Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "npm install",

// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "node" }


**Dockerfile**

ARG VARIANT="14-buster" FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}

[Optional] Uncomment this section to install additional OS packages.

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ && apt-get -y install --no-install-recommends gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget



<!-- Check to see if the problem is general, with a specific extension, or only happens when remote -->
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No
chrmarti commented 3 years ago

Could you append the log (F1 > Show Log) from when you are connected with the container?

mattoni commented 3 years ago
[8 ms] Remote-Containers 0.148.1 in VS Code 1.51.1 (e5a624b788d92b8d34d1392e4c4d9789406efe8f).
[24 ms] Start: Resolving remote
[26 ms] Start: Run: wsl -d Ubuntu -e wslpath -u \\wsl$\Ubuntu\home\mattoni\development\square8\dray_web_portals
[174 ms] Start: Run: wsl -d Ubuntu
[337 ms] Setting up container for folder or workspace: /home/mattoni/development/square8/dray_web_portals

[340 ms] Start: Check Docker is running
[340 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'info'
[1004 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && test '-f' '/home/mattoni/development/square8/dray_web_portals/.devcontainer/devcontainer.json'
[1119 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && cat '/home/mattoni/development/square8/dray_web_portals/.devcontainer/devcontainer.json'
[1243 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && git 'rev-parse' '--show-cdup'
[1365 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'ps' '-q' '-a' '--filter' 'label=vsch.local.folder=\\wsl$\Ubuntu\home\mattoni\development\square8\dray_web_portals' '--filter' 'label=vsch.quality=stable'
[1740 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && cat '/home/mattoni/development/square8/dray_web_portals/.devcontainer/Dockerfile'
[1856 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'build' '-f' '/home/mattoni/development/square8/dray_web_portals/.devcontainer/Dockerfile' '-t' 'vsc-dray_web_portals-2811fffbb35ac47cf65e627940f9d19e' '--build-arg' 'VARIANT=14' '/home/mattoni/development/square8/dray_web_portals/.devcontainer'

[+] Building 69.6s (6/6) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                                              0.0s
 => => transferring dockerfile: 938B                                                                                                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                                                                                                 0.1s
 => => transferring context: 2B                                                                                                                                                                                   0.0s
 => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/typescript-node:0-14                                                                                                                      1.9s
 => [1/2] FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-14@sha256:896f8833660c84c8dfa38091095dedea304069a53513e7538c031830803cf0dc                                                               13.5s
 => => resolve mcr.microsoft.com/vscode/devcontainers/typescript-node:0-14@sha256:896f8833660c84c8dfa38091095dedea304069a53513e7538c031830803cf0dc                                                                0.0s
 => => sha256:896f8833660c84c8dfa38091095dedea304069a53513e7538c031830803cf0dc 3.27kB / 3.27kB                                                                                                                    0.0s
 => => sha256:534b45e9910610759c1e15041eeb7f718865297c2056a53c35d5acb664a26772 12.04kB / 12.04kB                                                                                                                  0.0s
 => => sha256:60fb11f80a5653c8b9ff215dcd25957df5e4c9a3d53382ffbfa3c7cfbfcbed72 46.50MB / 46.50MB                                                                                                                  8.5s
 => => sha256:b4cfccdda191002d2a9dcf860dad5edb6ffe189a1304257c3e85f2af3ec66502 2.91kB / 2.91kB                                                                                                                    0.3s
 => => sha256:3b4b9aa7ffa6a47fe6c0783db3b81647c7cd54db91d1fd0d93d279cf6b127fda 4.96kB / 4.96kB                                                                                                                    0.4s
 => => sha256:75fc03c3db0a015c870b99322a81a75f75bf8d462fd2bda27b0b396db4c5a134 6.00MB / 6.00MB                                                                                                                    3.1s
 => => extracting sha256:3b4b9aa7ffa6a47fe6c0783db3b81647c7cd54db91d1fd0d93d279cf6b127fda                                                                                                                         0.0s
 => => sha256:bdff3e7c41171c6cf986f1eea66e3d5747cf72376d9cc6d14ff696d4c4819038 22.58MB / 22.58MB                                                                                                                  7.5s
 => => extracting sha256:60fb11f80a5653c8b9ff215dcd25957df5e4c9a3d53382ffbfa3c7cfbfcbed72                                                                                                                         2.5s
 => => extracting sha256:b4cfccdda191002d2a9dcf860dad5edb6ffe189a1304257c3e85f2af3ec66502                                                                                                                         0.0s
 => => extracting sha256:75fc03c3db0a015c870b99322a81a75f75bf8d462fd2bda27b0b396db4c5a134                                                                                                                         1.0s
 => => extracting sha256:bdff3e7c41171c6cf986f1eea66e3d5747cf72376d9cc6d14ff696d4c4819038                                                                                                                         1.0s
 => [2/2] RUN apt-get update && export DEBIAN_FRONTEND=noninteractive   && apt-get -y install --no-install-recommends libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 l  51.4s
 => exporting to image                                                                                                                                                                                            2.7s
 => => exporting layers                                                                                                                                                                                           2.7s
 => => writing image sha256:dfe49bd6bccaa4075c16bf404b7d050d2bf209004b2f7a83976c0519876cacd3                                                                                                                      0.0s
 => => naming to docker.io/library/vsc-dray_web_portals-2811fffbb35ac47cf65e627940f9d19e                                                                                                                          0.0s
[72978 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'inspect' '--type' 'image' 'vsc-dray_web_portals-2811fffbb35ac47cf65e627940f9d19e'
[73369 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && mkdir '-p' '/tmp/vsch'
[73482 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && /bin/sh '-c' 'cat >'"'"'/tmp/vsch/updateUID.Dockerfile-0.148.1-1607399359505'"'"''
[73583 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && mv '/tmp/vsch/updateUID.Dockerfile-0.148.1-1607399359505' '/tmp/vsch/updateUID.Dockerfile-0.148.1'
[73682 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && id '-u'
[73791 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && id '-g'
[73895 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'build' '-f' '/tmp/vsch/updateUID.Dockerfile-0.148.1' '-t' 'vsc-dray_web_portals-2811fffbb35ac47cf65e627940f9d19e-uid' '--build-arg' 'BASE_IMAGE=vsc-dray_web_portals-2811fffbb35ac47cf65e627940f9d19e' '--build-arg' 'REMOTE_USER=node' '--build-arg' 'NEW_UID=1000' '--build-arg' 'NEW_GID=1000' '--build-arg' 'IMAGE_USER=root' '/tmp/vsch'

[+] Building 0.6s (6/6) FINISHED
 => [internal] load build definition from updateUID.Dockerfile-0.148.1                                                                                                                                            0.1s
 => => transferring dockerfile: 1.33kB                                                                                                                                                                            0.0s
 => [internal] load .dockerignore                                                                                                                                                                                 0.1s
 => => transferring context: 2B                                                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/vsc-dray_web_portals-2811fffbb35ac47cf65e627940f9d19e:latest                                                                                                   0.0s
 => [1/2] FROM docker.io/library/vsc-dray_web_portals-2811fffbb35ac47cf65e627940f9d19e                                                                                                                            0.0s
 => => resolve docker.io/library/vsc-dray_web_portals-2811fffbb35ac47cf65e627940f9d19e:latest                                                                                                                     0.0s
 => [2/2] RUN /bin/sh -c '  eval $(sed -n "s/${REMOTE_USER}:[^:]*:\([^:]*\):\([^:]*\):[^:]*:\([^:]*\).*/OLD_UID=\1;OLD_GID=\2;HOME_FOLDER=\3/p" /etc/passwd);  eval $(sed -n "s/\([^:]*\):[^:]*:${NEW_UID}:.*/EX  0.3s
 => exporting to image                                                                                                                                                                                            0.2s
 => => exporting layers                                                                                                                                                                                           0.1s
 => => writing image sha256:365245410d1281726860421b88f054348c0ce06c54d3fd6fc95aa2781b016065                                                                                                                      0.0s
 => => naming to docker.io/library/vsc-dray_web_portals-2811fffbb35ac47cf65e627940f9d19e-uid                                                                                                                      0.0s
[76568 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker '-v'
[76915 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'events' '--format' '{{json .}}' '--filter' 'status=start'
[76922 ms] Start: Starting container
[76922 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'run' '-a' 'STDOUT' '-a' 'STDERR' '--mount' 'type=bind,source=/home/mattoni/development/square8/dray_web_portals,target=/workspaces/dray_web_portals' '-l' 'vsch.quality=stable' '-l' 'vsch.remote.devPort=0' '-l' 'vsch.local.folder=\\wsl$\Ubuntu\home\mattoni\development\square8\dray_web_portals' '--entrypoint' '/bin/sh' 'vsc-dray_web_portals-2811fffbb35ac47cf65e627940f9d19e-uid' '-c' 'echo Container started ; trap "exit 0" 15; while sleep 1 & wait $!; do :; done'
[77781 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'ps' '-q' '-a' '--filter' 'label=vsch.local.folder=\\wsl$\Ubuntu\home\mattoni\development\square8\dray_web_portals' '--filter' 'label=vsch.quality=stable'
Container started
[78135 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'inspect' '--type' 'container' '4ef74c039f64'
[78481 ms] Start: Inspecting container
[78482 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'inspect' '--type' 'container' '4ef74c039f64d94c95976e8f330fc51c6e5de779ebd1bcf851ed239b51bdf1c6'
[78834 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'exec' '-i' '-u' 'node' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=febe8e16-04d1-48ef-ba90-848951ac05f31607399285026' '4ef74c039f64d94c95976e8f330fc51c6e5de779ebd1bcf851ed239b51bdf1c6' '/bin/sh'
[78840 ms] Start: Run in container: uname -m
[79218 ms] x86_64
[79218 ms] 
[79218 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[79222 ms] PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
[79222 ms] 
[79223 ms] Start: Run in container: cat /etc/passwd
[79226 ms] Start: Updating configuration state
[79226 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && cat '/home/mattoni/development/square8/dray_web_portals/.devcontainer/Dockerfile'
[79335 ms] Start: Setup shutdown monitor
[79339 ms] Forking shutdown monitor: c:\Users\matto\.vscode\extensions\ms-vscode-remote.remote-containers-0.148.1\dist\shutdownMonitorProcess \\.\pipe\vscode-remote-containers-7f0588dc850aed691f87fe664c87698a474d01a9-sock singleContainer Info c:\Users\matto\AppData\Roaming\Code\logs\20201207T092008\exthost4\ms-vscode-remote.remote-containers 1607399286136
[79350 ms] Start: Run in container: test -d /home/node/.vscode-server
[79352 ms] 
[79352 ms] 
[79352 ms] Exit code 1
[79353 ms] Start: Run in container: test -d /home/node/.vscode-remote
[79355 ms] 
[79355 ms] 
[79355 ms] Exit code 1
[79355 ms] Start: Run in container: set -o noclobber ; mkdir -p '/home/node/.vscode-server/data/Machine' && { > '/home/node/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[79360 ms] 
[79360 ms] 
[79360 ms] Start: Run in container: mkdir -p '/home/node/.vscode-server/data/Machine' && cat >'/home/node/.vscode-server/data/Machine/settings.json' <<'settingsJSON'
[79365 ms] 
[79365 ms] 
[79365 ms] Start: Run in container: test -d /home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f
[79367 ms] 
[79368 ms] 
[79368 ms] Exit code 1
[79368 ms] Installing VS Code Server for commit e5a624b788d92b8d34d1392e4c4d9789406efe8f
[79368 ms] Start: Run in container: mkdir -p /home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f_1607399365504
[79371 ms] 
[79371 ms] 
[79440 ms] Start: Run in container: (dd iflag=fullblock bs=8192 count=3687 2>/dev/null; dd iflag=fullblock bs=6431 count=1 2>/dev/null) | tar --no-same-owner -xz --strip-components 1 -C /home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f_1607399365504
[80350 ms] 
[80350 ms] 
[80351 ms] Start: Run in container: mv -n /home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f_1607399365504 /home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f
[80354 ms] 
[80354 ms] 
[80355 ms] Start: Launching Remote-Containers helper.
[80355 ms] SSH_AUTH_SOCK not set on host.
[80355 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && gpgconf '--list-dir' 'agent-extra-socket'
[80512 ms] Start: Run in container: gpgconf --list-dir agent-socket
[80517 ms] /home/node/.gnupg/S.gpg-agent
[80517 ms] 
[80517 ms] Start: Run in container: gpgconf --list-dir homedir
[80521 ms] /home/node/.gnupg
[80521 ms] 
[80521 ms] Start: Run in container: ls '/home/node/.gnupg/private-keys-v1.d' 2>/dev/null
[80525 ms] 
[80525 ms] 
[80525 ms] Exit code 2
[80526 ms] Start: Run in container: mkdir -p -m 700 '/home/node/.gnupg'
[80527 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && cat '/home/mattoni/.ssh/known_hosts'
[80533 ms] 
[80533 ms] 
[80533 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-a6bda55bc246e614e31ba34a7afbe3fb5a7d3b63.js' >/tmp/vscode-remote-containers-a6bda55bc246e614e31ba34a7afbe3fb5a7d3b63.js
[80533 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && gpgconf '--list-dir' 'homedir'
[80539 ms] 
[80539 ms] 
[80539 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-a6bda55bc246e614e31ba34a7afbe3fb5a7d3b63.js' >/tmp/vscode-remote-containers-server-a6bda55bc246e614e31ba34a7afbe3fb5a7d3b63.js
[80543 ms] 
[80543 ms] 
[80544 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'exec' '-i' '-u' 'node' '-e' 'REMOTE_CONTAINERS_SOCKETS=["/home/node/.gnupg/S.gpg-agent"]' '-e' 'REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-a6bda55bc246e614e31ba34a7afbe3fb5a7d3b63.sock' '4ef74c039f64d94c95976e8f330fc51c6e5de779ebd1bcf851ed239b51bdf1c6' '/home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node' '/tmp/vscode-remote-containers-server-a6bda55bc246e614e31ba34a7afbe3fb5a7d3b63.js'
[80727 ms] Start: Run in container: # Test for /home/node/.ssh/known_hosts and ssh
[80733 ms] 
[80733 ms] 
[80734 ms] Start: Run in container: # Copy /home/mattoni/.ssh/known_hosts to /home/node/.ssh/known_hosts
[80738 ms] 
[80738 ms] 
[80738 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'exec' '-i' '-u' 'root' '4ef74c039f64d94c95976e8f330fc51c6e5de779ebd1bcf851ed239b51bdf1c6' '/bin/sh'
[80745 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system credential.helper '!f() { /home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node /tmp/vscode-remote-containers-a6bda55bc246e614e31ba34a7afbe3fb5a7d3b63.js $*; }; f' || true
[80745 ms] Start: Run in container: gpgconf --list-dir homedir
[80753 ms] /home/node/.gnupg
[80753 ms] 
[80753 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && cat '/home/mattoni/.gnupg/pubring.kbx'
[80956 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && cat '/home/mattoni/.gnupg/trustdb.gpg'
[81108 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && gpg-connect-agent 'updatestartuptty' '/bye'
[81282 ms] 
[81282 ms] 
[81283 ms] Start: Run in container: set -o noclobber ; mkdir -p '/home/node/.vscode-server/data/Machine' && { > '/home/node/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[81288 ms] 
[81289 ms] 
[81291 ms] Start: Run in container: test -d /home/node/.vscode-server/extensionsCache && ls /home/node/.vscode-server/extensionsCache || true
[81294 ms] 
[81294 ms] 
[81322 ms] Start: Run in container: # Copy extensions to remote
[81383 ms] 
[81383 ms] 
[81384 ms] Start: Run in container: cd /home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f; export VSCODE_AGENT_FOLDER=/home/node/.vscode-server; /home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/server.sh --extensions-download-dir /home/node/.vscode-server/extensionsCache --install-extension dbaeumer.vscode-eslint --install-extension ms-vscode.vscode-typescript-tslint-plugin --install-extension kumar-harsh.graphql-for-vscode --install-extension esbenp.prettier-vscode --force
[85144 ms] Installing extensions...
Installing extension 'ms-vscode.vscode-typescript-tslint-plugin' v1.2.3...
Installing extension 'dbaeumer.vscode-eslint' v2.1.13...
Installing extension 'esbenp.prettier-vscode' v5.8.0...
Installing extension 'kumar-harsh.graphql-for-vscode' v1.15.3...
Extension 'dbaeumer.vscode-eslint' v2.1.13 was successfully installed.
Extension 'esbenp.prettier-vscode' v5.8.0 was successfully installed.
Extension 'ms-vscode.vscode-typescript-tslint-plugin' v1.2.3 was successfully installed.
Extension 'kumar-harsh.graphql-for-vscode' v1.15.3 was successfully installed.
[85144 ms] 
[85144 ms] Start: Run in container: ls /home/node/.vscode-server/extensionsCache || true
[85149 ms] dbaeumer.vscode-eslint-2.1.13
esbenp.prettier-vscode-5.8.0
kumar-harsh.graphql-for-vscode-1.15.3
ms-vscode.vscode-typescript-tslint-plugin-1.2.3
[85149 ms] 
[85149 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'exec' '-i' '-u' 'node' '-w' '/home/node/.vscode-server' '4ef74c039f64d94c95976e8f330fc51c6e5de779ebd1bcf851ed239b51bdf1c6' 'tar' 'c' 'extensionsCache/dbaeumer.vscode-eslint-2.1.13' 'extensionsCache/ms-vscode.vscode-typescript-tslint-plugin-1.2.3'
[85582 ms] Start: Run in container: set -o noclobber ; mkdir -p '/home/node/.vscode-server/data/Machine' && { > '/home/node/.vscode-server/data/Machine/.postCreateCommandMarker' ; } 2> /dev/null
[85585 ms] 
[85585 ms] 
[85585 ms] Start: Run in container: test -f /home/node/.vscode-server/.postCreateCommandMarker
[85588 ms] 
[85588 ms] 
[85588 ms] Exit code 1
[85588 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'exec' '-i' '-u' 'node' '-e' 'REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-a6bda55bc246e614e31ba34a7afbe3fb5a7d3b63.sock' '-e' 'REMOTE_CONTAINERS=true' '-w' '/workspaces/dray_web_portals' '4ef74c039f64d94c95976e8f330fc51c6e5de779ebd1bcf851ed239b51bdf1c6' '/bin/sh' '-c' 'npm install'
[107578 ms] audited 2582 packages in 20.471s
[109225 ms] 
79 packages are looking for funding
  run `npm fund` for details

[109226 ms] found 4238 vulnerabilities (4231 low, 7 high)
  run `npm audit fix` to fix them, or `npm audit` for details
[109338 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && cat '/home/mattoni/.gitconfig'
[109440 ms] Start: Run in container: # Test for /home/node/.gitconfig and git
[109444 ms] 
[109444 ms] 
[109444 ms] Start: Run in container: # Copy /home/mattoni/.gitconfig to /home/node/.gitconfig
[109447 ms] 
[109447 ms] 
[109447 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && cat '/home/mattoni/.config/git/config'
[109559 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global credential.helper '!f() { /home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node /tmp/vscode-remote-containers-a6bda55bc246e614e31ba34a7afbe3fb5a7d3b63.js $*; }; f' || true
[109578 ms] 
[109578 ms] 
[109579 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink -f /proc/$pid/cwd ; xargs -0 < /proc/$pid/environ ; xargs -0 < /proc/$pid/cmdline ; } ; echo ; done 2>/dev/null
[109608 ms] Start: Run in container: /home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/server.sh --disable-user-env-probe --use-host-proxy --port 0 --extensions-download-dir /home/node/.vscode-server/extensionsCache
[109874 ms] 

*
* Visual Studio Code Server
*
* Reminder: You may only use this software with Visual Studio family products,
* as described in the license https://aka.ms/vscode-remote/license
*

[109895 ms] IP Address: 172.17.0.2
[109899 ms] Extension host agent listening on 39993
[109899 ms] Start: Run in container: echo 39993 >/home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/.devport
[109899 ms] 

[109900 ms] [03:49:56] Extension host agent started.
[109901 ms] 
[109901 ms] 
[109904 ms] Forwarding local port 39993 to container port 39993
[109974 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'exec' '-i' '-u' 'node' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=febe8e16-04d1-48ef-ba90-848951ac05f31607399285026' '4ef74c039f64d94c95976e8f330fc51c6e5de779ebd1bcf851ed239b51bdf1c6' '/home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node' '-e' '
[109974 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'exec' '-i' '-u' 'node' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=febe8e16-04d1-48ef-ba90-848951ac05f31607399285026' '4ef74c039f64d94c95976e8f330fc51c6e5de779ebd1bcf851ed239b51bdf1c6' '/home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node' '-e' '
[112462 ms] [03:49:58] [::ffff:127.0.0.1][1ecbcc92][ExtensionHostConnection] New connection established.
[112471 ms] [03:49:58] [::ffff:127.0.0.1][1ecbcc92][ExtensionHostConnection] <247> Launched Extension Host Process.
[112550 ms] [03:49:58] [::ffff:127.0.0.1][169a99bf][ManagementConnection] New connection established.
[112574 ms] [03:49:58] Listing 0 persistent terminals, 0 total terminals
[113195 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mattoni/development/square8/dray_web_portals' && docker 'exec' '-i' '-u' 'node' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=febe8e16-04d1-48ef-ba90-848951ac05f31607399285026' '4ef74c039f64d94c95976e8f330fc51c6e5de779ebd1bcf851ed239b51bdf1c6' '/home/node/.vscode-server/bin/e5a624b788d92b8d34d1392e4c4d9789406efe8f/node' '-e' '
chrmarti commented 3 years ago

Where in WSL do you set SSH_AUTH_SOCK? If it's in ~/.bashrc, could you try moving it to ~/.bash_profile? (We read the environment variables with a non-interactive login shell.)

mattoni commented 3 years ago

Awesome, that was it! Is there a place this is documented? I never saw anything about putting it in ~/.bash_profile (and the file didn't even exist until I made it).

chrmarti commented 3 years ago

It's a little hard to find because the term "SSH" shows up in many different contexts of our documentation: https://code.visualstudio.com/docs/remote/containers#_using-ssh-keys