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.61k stars 275 forks source link

WSL-remote SSH agent set up but not working. #6028

Closed mr2c12 closed 2 years ago

mr2c12 commented 2 years ago

Pc running windows 10. WSL2 on a Ubuntu-20.04 image. In the Wsl prompt I can push/pull to remote repo using ssh keys:

$ git pull Already up to date.

Remote container connected and working, but unable to pull/push:

$ git pull git@rnd.perpic.it: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

Wsl is running the agent (as per documentation), so I have:

$ cat ~/.ssh/

ssh-agent SSH_AUTH_SOCK=/tmp/ssh-nne0RPGYS9vJ/agent.231; export SSH_AUTH_SOCK; SSH_AGENT_PID=232; export SSH_AGENT_PID; echo Agent pid 232;

Socat is installed in wsl:

$ socat -V socat by Gerhard Rieger and contributors - see www.dest-unreach.org socat version 1.7.3.3 on Oct 26 2019 17:42:04 running on Linux version #1 SMP Wed Aug 25 23:20:18 UTC 2021, release 5.10.60.1-microsoft-standard-WSL2, machine x86_64 features:

define WITH_STDIO 1

define WITH_FDNUM 1

define WITH_FILE 1

define WITH_CREAT 1

define WITH_GOPEN 1

define WITH_TERMIOS 1

define WITH_PIPE 1

define WITH_UNIX 1

define WITH_ABSTRACT_UNIXSOCKET 1

define WITH_IP4 1

define WITH_IP6 1

define WITH_RAWIP 1

define WITH_GENERICSOCKET 1

define WITH_INTERFACE 1

define WITH_TCP 1

define WITH_UDP 1

define WITH_SCTP 1

define WITH_LISTEN 1

define WITH_SOCKS4 1

define WITH_SOCKS4A 1

define WITH_PROXY 1

define WITH_SYSTEM 1

define WITH_EXEC 1

undef WITH_READLINE

define WITH_TUN 1

define WITH_PTY 1

define WITH_OPENSSL 1

undef WITH_FIPS

define WITH_LIBWRAP 1

define WITH_SYCLS 1

define WITH_FILAN 1

define WITH_RETRY 1

define WITH_MSGLEVEL 0 /debug/

When I open the remote container in vs-code, this is the log I get:

[394 ms] Remote-Containers 0.205.2 in VS Code 1.62.3 (ccbaa2d27e38e5afa3e5c21c1c7bef4657064247). [394 ms] Start: Run: wsl -d Ubuntu-20.04 -e wslpath -u \wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo [611 ms] Start: Resolving Remote [613 ms] Start: Run: wsl -d Ubuntu-20.04 -e wslpath -u \wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo [786 ms] Start: WSL env probe [787 ms] Start: Run: wsl -d Ubuntu-20.04 [921 ms] Setting up container for folder or workspace: /home/user/repo/mycurrentrepo [922 ms] Start: Check Docker is running [922 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='2' docker 'version' '--format' '{{.Server.APIVersion}}' [1137 ms] Server API version: 1.41 [1531 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && git 'rev-parse' '--show-cdup' [1657 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='3' docker 'ps' '-q' '-a' '--filter' 'label=vsch.local.folder=\wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo' '--filter' 'label=vsch.quality=stable' [1922 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='4' docker 'inspect' '--type' 'container' '39868df4d9a5' [2434 ms] Start: Starting container [2434 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='5' docker 'start' '39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b' [3730 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='6' docker 'ps' '-q' '-a' '--filter' 'label=vsch.local.folder=\wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo' '--filter' 'label=vsch.quality=stable' [3950 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='7' docker 'inspect' '--type' 'container' '39868df4d9a5' [4167 ms] Start: Inspecting container [4167 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='8' docker 'inspect' '--type' 'container' '39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b' [4382 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='9' docker 'exec' '-i' '-u' 'vscode' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=9f5d9f8a-df53-4f1e-be95-90abfebe178e1639129434804' '39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b' '/bin/sh' [4395 ms] Start: Run in container: uname -m [4783 ms] x86_64 [4783 ms] [4784 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [4789 ms] NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal [4789 ms] [4789 ms] Start: Run in container: cat /etc/passwd [4793 ms] Start: Setup shutdown monitor [4793 ms] Forking shutdown monitor: c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\shutdown\shutdownMonitorProcess \.\pipe\vscode-remote-containers-44f665c27e7002dd71fda6bbe6a07798f39dc0da-sock singleContainer Debug c:\Users\mycurrentwindowsuser\AppData\Roaming\Code\logs\20211210T103612\exthost1\ms-vscode-remote.remote-containers 1639129435590 [4805 ms] Start: Run in container: test -d /home/vscode/.vscode-server [4808 ms] [4808 ms] [4809 ms] Start: Run in container: test -f /var/vscode-server/.patchEtcEnvironmentMarker [4814 ms] [4814 ms] [4814 ms] Start: Run in container: test -f /var/vscode-server/.patchEtcProfileMarker [4816 ms] [4816 ms] [4816 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null [4818 ms] [4819 ms] [4819 ms] Exit code 1 [4819 ms] Start: Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json [4821 ms] [4821 ms] cat: /home/vscode/.vscode-server/data/Machine/settings.json: No such file or directory [4821 ms] Exit code 1 [4821 ms] Start: Run in container: test -d /home/vscode/.vscode-server/bin/ccbaa2d27e38e5afa3e5c21c1c7bef4657064247 [4824 ms] [4824 ms] [4824 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/ccbaa2d27e38e5afa3e5c21c1c7bef4657064247 [4825 ms] [4826 ms] [4826 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='10' docker 'exec' '-i' '-u' 'root' '39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b' '/bin/sh' [4826 ms] Start: Launching Remote-Containers helper. [4827 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-7d7670569bf35f1bbc29eb6f7bfdff6ec8cec2e9.sock) forwarded to host (/tmp/ssh-nne0RPGYS9vJ/agent.231). [4827 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && gpgconf '--list-dir' 'agent-extra-socket' [4837 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/ccbaa2d27e38e5afa3e5c21c1c7bef4657064247' [5006 ms] /home/user/.gnupg/S.gpg-agent.extra [5006 ms] [5007 ms] Start: Run in container: gpgconf --list-dir agent-socket [5017 ms] /home/vscode/.gnupg/S.gpg-agent [5018 ms] [5018 ms] Start: Run in container: gpgconf --list-dir homedir [5020 ms] /home/vscode/.gnupg [5020 ms] [5020 ms] Start: Run in container: ls '/home/vscode/.gnupg/private-keys-v1.d' 2>/dev/null [5022 ms] [5022 ms] [5022 ms] Exit code 2 [5023 ms] Start: Run in container: mkdir -p -m 700 '/home/vscode/.gnupg' [5024 ms] userEnvProbe: loginInteractiveShell (default) [5025 ms] userEnvProbe shell: /bin/bash [5037 ms] [5038 ms] [5038 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-7d7670569bf35f1bbc29eb6f7bfdff6ec8cec2e9.js' >/tmp/vscode-remote-containers-7d7670569bf35f1bbc29eb6f7bfdff6ec8cec2e9.js [5038 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && gpgconf '--list-dir' 'homedir' [5057 ms] [5057 ms] [5058 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-7d7670569bf35f1bbc29eb6f7bfdff6ec8cec2e9.js' >/tmp/vscode-remote-containers-server-7d7670569bf35f1bbc29eb6f7bfdff6ec8cec2e9.js [5063 ms] [5063 ms] [5064 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='11' docker 'exec' '-i' '-u' 'vscode' '-e' 'REMOTE_CONTAINERS_SOCKETS=["/tmp/vscode-ssh-auth-7d7670569bf35f1bbc29eb6f7bfdff6ec8cec2e9.sock","/home/vscode/.gnupg/S.gpg-agent"]' '-e' 'REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-7d7670569bf35f1bbc29eb6f7bfdff6ec8cec2e9.sock' '39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b' '/home/vscode/.vscode-server/bin/ccbaa2d27e38e5afa3e5c21c1c7bef4657064247/node' '/tmp/vscode-remote-containers-server-7d7670569bf35f1bbc29eb6f7bfdff6ec8cec2e9.js' [5177 ms] Start: Run in container: # Test for /home/vscode/.ssh/known_hosts and ssh [5218 ms] /home/vscode/.ssh/known_hosts exists [5219 ms] [5219 ms] Exit code 1 [5291 ms] [5291 ms] [5292 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/ccbaa2d27e38e5afa3e5c21c1c7bef4657064247/node /tmp/vscode-remote-containers-7d7670569bf35f1bbc29eb6f7bfdff6ec8cec2e9.js $; }; f' || true [5330 ms] [5330 ms] [5331 ms] Start: Preparing Extensions [5331 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null [5336 ms] [5336 ms] [5337 ms] Exit code 1 [5341 ms] Extensions cache, install extensions: None [5341 ms] Start: Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true [5349 ms] cschlosser.doxdocgen-1.3.2 jeff-hykin.better-cpp-syntax-1.15.10 llvm-vs-code-extensions.vscode-clangd-0.1.13 marus25.cortex-debug-0.4.10 ms-azuretools.vscode-docker-1.18.0 ms-vscode-remote.remote-containers-0.205.2 ms-vscode-remote.remote-ssh-0.66.1 ms-vscode-remote.remote-ssh-edit-0.66.1 ms-vscode-remote.remote-wsl-0.58.5 ms-vscode.cmake-tools-1.9.2 ms-vscode.cpptools-1.7.1 ms-vscode.cpptools-extension-pack-1.1.0 ms-vscode.cpptools-themes-1.0.0 twxs.cmake-0.0.17 [5350 ms] [5350 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true [5358 ms] cschlosser.doxdocgen-1.3.2 jeff-hykin.better-cpp-syntax-1.15.10 llvm-vs-code-extensions.vscode-clangd-0.1.13 marus25.cortex-debug-0.4.10 ms-azuretools.vscode-docker-1.18.0 ms-vscode-remote.remote-containers-0.205.2 ms-vscode-remote.remote-ssh-0.66.1 ms-vscode-remote.remote-ssh-edit-0.66.1 ms-vscode-remote.remote-wsl-0.58.5 ms-vscode.cmake-tools-1.9.1 ms-vscode.cmake-tools-1.9.2 ms-vscode.cpptools-1.7.1 ms-vscode.cpptools-extension-pack-1.1.0 ms-vscode.cpptools-themes-1.0.0 twxs.cmake-0.0.17 [5359 ms] [5359 ms] Extensions cache, link in container: None [5361 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr " [5429 ms] Start: Starting VS Code Server [5429 ms] Start: Run in container: /home/vscode/.vscode-server/bin/ccbaa2d27e38e5afa3e5c21c1c7bef4657064247/server.sh --log debug --force-disable-user-env --use-host-proxy --port 0 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --start-server --disable-websocket-compression [7104 ms] Start: Run in container: for pid incd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr " [7150 ms] userEnvProbe is taking longer than 2 seconds. Process not found. [15094 ms] userEnvProbe is taking longer than 10 seconds. Avoid waiting for user input in your shell's startup scripts. Continuing. [15130 ms] Impossibile stabilire la connessione. Risposta non corretta della parte connessa dopo l'intervallo di tempo oppure mancata risposta dall'host collegato.

[15130 ms] [15130 ms] Exit code 4294967295 [15131 ms] Start: Run in container: gpgconf --list-dir homedir [15133 ms] /home/vscode/.gnupg [15134 ms] [15134 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && gpg-connect-agent 'updatestartuptty' '/bye' [15693 ms]

*

Extension host agent listening on 38221

[15694 ms] Start: Run in container: echo 38221 >'/home/vscode/.vscode-server/data/Machine/.devport-ccbaa2d27e38e5afa3e5c21c1c7bef4657064247' [15701 ms] [15701 ms] [15702 ms] Port forwarding for container port 38221 starts listening on local port. [15704 ms] Port forwarding local port 38221 to container port 38221 [15704 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.onCreateCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.onCreateCommandMarker' ; } 2> /dev/null [15706 ms] [15706 ms] [15707 ms] Exit code 1 [15707 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.updateContentCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.updateContentCommandMarker' ; } 2> /dev/null [15709 ms] [15709 ms] [15709 ms] Exit code 1 [15710 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.postCreateCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.postCreateCommandMarker' ; } 2> /dev/null [15719 ms] [15719 ms] [15719 ms] Exit code 1 [15758 ms] Port forwarding connection from 54795 > 38221 > 38221 in the container. [15759 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='13' docker 'exec' '-i' '-u' 'vscode' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=9f5d9f8a-df53-4f1e-be95-90abfebe178e1639129434804' '39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b' '/home/vscode/.vscode-server/bin/ccbaa2d27e38e5afa3e5c21c1c7bef4657064247/node' '-e' ' [15893 ms] Start: Run in container: # Test for /home/vscode/.gitconfig and git [15896 ms] /home/vscode/.gitconfig exists [15896 ms] [15896 ms] Exit code 1 [15936 ms] [09:44:11] Extension host agent started. [16093 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/ccbaa2d27e38e5afa3e5c21c1c7bef4657064247/node /tmp/vscode-remote-containers-7d7670569bf35f1bbc29eb6f7bfdff6ec8cec2e9.js $*; }; f' || true [16099 ms] [16099 ms] [16100 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/data/Machine' && [ "$(cat '/home/vscode/.vscode-server/data/Machine/.postStartCommandMarker' 2>/dev/null)" != '2021-12-10T09:43:59.4370033Z' ] && echo '2021-12-10T09:43:59.4370033Z' > '/home/vscode/.vscode-server/data/Machine/.postStartCommandMarker' [16106 ms] [16107 ms] [16303 ms] [09:44:12] [::ffff:127.0.0.1][f3a14427][ManagementConnection] New connection established. [16304 ms] Port forwarding connection from 49568 > 38221 > 38221 in the container. [16304 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='14' docker 'exec' '-i' '-u' 'vscode' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=9f5d9f8a-df53-4f1e-be95-90abfebe178e1639129434804' '39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b' '/home/vscode/.vscode-server/bin/ccbaa2d27e38e5afa3e5c21c1c7bef4657064247/node' '-e' ' [17730 ms] [09:44:13] [::ffff:127.0.0.1][0204bc48][ExtensionHostConnection] New connection established. [17736 ms] [09:44:13] [::ffff:127.0.0.1][0204bc48][ExtensionHostConnection] <287> Launched Extension Host Process. [19060 ms] Start: Run in container: cat /proc/305/environ [19325 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [19508 ms] Port forwarding connection from 58087 > 38221 > 38221 in the container. [19509 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='D:\Program Files\Microsoft VS Code\Code.exe' VSCODE_SSH_ASKPASS_EXTRA_ARGS='--ms-enable-electron-run-as-node' VSCODE_SSH_ASKPASS_MAIN='c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.205.2\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\.\pipe\ssh-askpass-d1b0ecde9d197c9fd5b68cb999bfdce6d3d4c2f0-sock' DOCKER_CONTEXT='default' SSH_AUTH_SOCK='/tmp/ssh-nne0RPGYS9vJ/agent.231' VSCODE_SSH_ASKPASS_COUNTER='15' docker 'exec' '-i' '-u' 'vscode' '-e' 'VSCODE_REMOTE_CONTAINERS_SESSION=9f5d9f8a-df53-4f1e-be95-90abfebe178e1639129434804' '39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b' '/home/vscode/.vscode-server/bin/ccbaa2d27e38e5afa3e5c21c1c7bef4657064247/node' '-e' ' [20778 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [21209 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [21362 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [21520 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [21747 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [21886 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [22050 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [22195 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [26244 ms] Port forwarding 58087 > 38221 > 38221 stderr: Remote close [26501 ms] Port forwarding 58087 > 38221 > 38221 terminated with code 0 and signal null. [32152 ms] socat terminated (code: 4294967295, signal: null). [146504 ms] Port forwarding 58087 > 38221 > 38221: Local close with error [214892 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [214893 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [214921 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [214922 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [214922 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [214923 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [214923 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [214923 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231' [214924 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && socat '-' 'UNIX-CONNECT:/tmp/ssh-nne0RPGYS9vJ/agent.231'

I don't get any more errors. Still I am una ble to use the ssh keys to connect to the remote repository.

chrmarti commented 2 years ago

[394 ms] Remote-Containers 0.205.2 in VS Code 1.62.3 (ccbaa2d27e38e5afa3e5c21c1c7bef4657064247).

Could you retry with VS Code 1.63 and the latest version of the Remote-Containers extension (currently 0.209.4)?

If that doesn't work, please enable 'trace' logging for Remote-Containers in the user settings and post the new log here.

image
mr2c12 commented 2 years ago

Both VS Code and Remote-containers have been updated. Still got the same error.

Here it is the log at "trace" level:

[64 ms] Remote-Containers 0.209.5 in VS Code 1.63.0 (7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e). [64 ms] Start: Run: wsl -d Ubuntu-20.04 -e wslpath -u \wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo [192 ms] Stop (128 ms): Run: wsl -d Ubuntu-20.04 -e wslpath -u \wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo [206 ms] Start: Resolving Remote [209 ms] Start: Run: wsl -d Ubuntu-20.04 -e wslpath -u \wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo [358 ms] Stop (149 ms): Run: wsl -d Ubuntu-20.04 -e wslpath -u \wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo [360 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/user/repo/mycurrentrepo' && /bin/sh [371 ms] Start: Run in host: id -un [417 ms] user [417 ms] [417 ms] Stop (46 ms): Run in host: id -un [418 ms] Start: Run in host: cat /etc/passwd [419 ms] Stop (1 ms): Run in host: cat /etc/passwd [420 ms] Start: Run in host: echo ~ [421 ms] /home/user [421 ms] [421 ms] Stop (1 ms): Run in host: echo ~ [421 ms] Start: Run in host: test -x '/home/user/.vscode-remote-containers/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' [422 ms] [422 ms] [422 ms] Exit code 1 [422 ms] Stop (1 ms): Run in host: test -x '/home/user/.vscode-remote-containers/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' [423 ms] Start: Run in host: test -x '/home/user/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' [424 ms] [424 ms] [424 ms] Stop (1 ms): Run in host: test -x '/home/user/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' [424 ms] Start: Run in host: test -f '/home/user/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node_modules/node-pty/package.json' [425 ms] [425 ms] [425 ms] Stop (1 ms): Run in host: test -f '/home/user/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node_modules/node-pty/package.json' [425 ms] Start: Run in host: test -f '/home/user/.vscode-remote-containers/dist/vscode-remote-containers-server-0.209.5.js' [426 ms] [426 ms] [426 ms] Stop (1 ms): Run in host: test -f '/home/user/.vscode-remote-containers/dist/vscode-remote-containers-server-0.209.5.js' [427 ms] userEnvProbe: loginInteractiveShell (default) [427 ms] userEnvProbe shell: /bin/bash [428 ms] Start: Run in Host: /bin/bash -lic '/home/user/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' -p '"756d03f1624db98270d47925456752c4" + JSON.stringify(process.env) + "756d03f1624db98270d47925456752c4"' [537 ms] Stop (109 ms): Run in Host: /bin/bash -lic '/home/user/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' -p '"756d03f1624db98270d47925456752c4" + JSON.stringify(process.env) + "756d03f1624db98270d47925456752c4"' [537 ms] Agent pid 541 756d03f1624db98270d47925456752c4{"SHELL":"/bin/sh","WSL_DISTRO_NAME":"Ubuntu-20.04","SSH_AUTH_SOCK":"/tmp/ssh-20WGT4aHKYXT/agent.531","REMOTE_CONTAINERS_IPC":"","SSH_AGENT_PID":"541","NAME":"nb-michele","PWD":"/home/user/repo/mycurrentrepo","LOGNAME":"user","HOME":"/home/user","LANG":"C.UTF-8","WSL_INTEROP":"/run/WSL/4408_interop","TERM":"xterm-256color","REMOTE_CONTAINERS_SOCKETS":"[]","USER":"user","SHLVL":"0","WSLENV":"","XDG_DATA_DIRS":"/usr/local/share:/usr/share:/var/lib/snapd/desktop","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/Git/cmd:/mnt/d/Program Files/Microsoft VS Code/bin:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/d/ST/STM32CubeIDE_1.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346/tools/bin:/mnt/c/Program Files/CMake/bin:/mnt/c/Users/mycurrentwindowsuser/AppData/Local/Microsoft/WindowsApps:/snap/bin","HOSTTYPE":"x8664","OLDPWD":"/mnt/d/Program Files/Microsoft VS Code","":"/home/user/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node"}756d03f1624db98270d47925456752c4 [537 ms] your 131072x1 screen size is bogus. expect trouble your 131072x1 screen size is bogus. expect trouble

[537 ms] userEnvProbe parsed: { "SHELL": "/bin/sh", "WSL_DISTRO_NAME": "Ubuntu-20.04", "SSH_AUTH_SOCK": "/tmp/ssh-20WGT4aHKYXT/agent.531", "REMOTE_CONTAINERS_IPC": "", "SSH_AGENT_PID": "541", "NAME": "nb-michele", "PWD": "/home/user/repo/mycurrentrepo", "LOGNAME": "user", "HOME": "/home/user", "LANG": "C.UTF-8", "WSL_INTEROP": "/run/WSL/4408_interop", "TERM": "xterm-256color", "REMOTE_CONTAINERS_SOCKETS": "[]", "USER": "user", "SHLVL": "0", "WSLENV": "", "XDG_DATA_DIRS": "/usr/local/share:/usr/share:/var/lib/snapd/desktop", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/Git/cmd:/mnt/d/Program Files/Microsoft VS Code/bin:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/d/ST/STM32CubeIDE_1.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346/tools/bin:/mnt/c/Program Files/CMake/bin:/mnt/c/Users/mycurrentwindowsuser/AppData/Local/Microsoft/WindowsApps:/snap/bin", "HOSTTYPE": "x8664", "OLDPWD": "/mnt/d/Program Files/Microsoft VS Code", "": "/home/user/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node" } [537 ms] userEnvProbe PATHs: Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/Git/cmd:/mnt/d/Program Files/Microsoft VS Code/bin:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/d/ST/STM32CubeIDE_1.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346/tools/bin:/mnt/c/Program Files/CMake/bin:/mnt/c/Users/mycurrentwindowsuser/AppData/Local/Microsoft/WindowsApps:/snap/bin' Container: None [540 ms] Setting up container for folder or workspace: /home/user/repo/mycurrentrepo [540 ms] Start: Check Docker is running [541 ms] Start: Run in Host: docker version --format {{.Server.APIVersion}} [676 ms] Stop (135 ms): Run in Host: docker version --format {{.Server.APIVersion}} [677 ms] Server API version: 1.41 [677 ms] Stop (137 ms): Check Docker is running [688 ms] Start: Run in Host: git rev-parse --show-cdup [691 ms] Stop (3 ms): Run in Host: git rev-parse --show-cdup [692 ms] Start: Run in Host: docker ps -q -a --filter label=vsch.local.folder=\wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo --filter label=vsch.quality=stable [863 ms] Stop (171 ms): Run in Host: docker ps -q -a --filter label=vsch.local.folder=\wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo --filter label=vsch.quality=stable [864 ms] Start: Run in Host: docker inspect --type container 39868df4d9a5 [1020 ms] Stop (156 ms): Run in Host: docker inspect --type container 39868df4d9a5 [1025 ms] Start: Starting container [1025 ms] Start: Run in Host: docker start 39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b [2508 ms] Stop (1483 ms): Run in Host: docker start 39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b [2508 ms] Stop (1483 ms): Starting container [2508 ms] Start: Run in Host: docker ps -q -a --filter label=vsch.local.folder=\wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo --filter label=vsch.quality=stable [2666 ms] Stop (158 ms): Run in Host: docker ps -q -a --filter label=vsch.local.folder=\wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo --filter label=vsch.quality=stable [2667 ms] Start: Run in Host: docker inspect --type container 39868df4d9a5 [2830 ms] Stop (163 ms): Run in Host: docker inspect --type container 39868df4d9a5 [2830 ms] Start: Inspecting container [2830 ms] Start: Run in Host: docker inspect --type container 39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b [2983 ms] Stop (153 ms): Run in Host: docker inspect --type container 39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b [2984 ms] Stop (154 ms): Inspecting container [2990 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=74527466-b03d-4dc7-bc92-2e50e1a4c8d61639388026418 39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b /bin/sh [2993 ms] Start: Run in container: uname -m [3313 ms] x86_64 [3314 ms] [3314 ms] Stop (321 ms): Run in container: uname -m [3314 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [3320 ms] NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal [3321 ms] [3321 ms] Stop (7 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [3321 ms] Start: Run in container: cat /etc/passwd [3323 ms] Stop (2 ms): Run in container: cat /etc/passwd [3324 ms] Start: Setup shutdown monitor [3324 ms] Forking shutdown monitor: c:\Users\mycurrentwindowsuser.vscode\extensions\ms-vscode-remote.remote-containers-0.209.5\dist\shutdown\shutdownMonitorProcess \.\pipe\vscode-remote-containers-71f64c9b1674426530ca9bb612f0ec8549f34ccc-sock singleContainer Trace c:\Users\mycurrentwindowsuser\AppData\Roaming\Code\logs\20211213T102001\exthost2\ms-vscode-remote.remote-containers 1639388027676 [3335 ms] Stop (11 ms): Setup shutdown monitor [3335 ms] Start: Run in container: test -d /home/vscode/.vscode-server [3339 ms] [3339 ms] [3339 ms] Stop (4 ms): Run in container: test -d /home/vscode/.vscode-server [3339 ms] Start: Run in container: test -f /var/vscode-server/.patchEtcEnvironmentMarker [3342 ms] [3343 ms] [3343 ms] Stop (4 ms): Run in container: test -f /var/vscode-server/.patchEtcEnvironmentMarker [3343 ms] Start: Run in container: test -f /var/vscode-server/.patchEtcProfileMarker [3345 ms] [3345 ms] [3345 ms] Stop (2 ms): Run in container: test -f /var/vscode-server/.patchEtcProfileMarker [3345 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null [3348 ms] [3348 ms] [3348 ms] Exit code 1 [3348 ms] Stop (3 ms): Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null [3348 ms] Start: Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json [3351 ms] [3351 ms] cat: /home/vscode/.vscode-server/data/Machine/settings.json: No such file or directory [3351 ms] Exit code 1 [3352 ms] Stop (4 ms): Run in container: cat /home/vscode/.vscode-server/data/Machine/settings.json [3352 ms] Start: Run in container: test -d /home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e [3355 ms] [3356 ms] [3356 ms] Stop (4 ms): Run in container: test -d /home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e [3356 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e [3358 ms] [3358 ms] [3358 ms] Stop (2 ms): Run in container: test -d /vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e [3358 ms] Start: Run in Host: docker exec -i -u root 39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b /bin/sh [3358 ms] Start: Launching Remote-Containers helper. [3359 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-17501b613931529f0c026a4d76420d7425298125.sock) forwarded to remote host (/tmp/ssh-20WGT4aHKYXT/agent.531). [3359 ms] Start: Run in Host: gpgconf --list-dir agent-extra-socket [3361 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e' [3367 ms] Stop (8 ms): Run in Host: gpgconf --list-dir agent-extra-socket [3367 ms] /home/user/.gnupg/S.gpg-agent.extra [3367 ms] [3367 ms] Start: Run in container: gpgconf --list-dir agent-socket [3379 ms] /home/vscode/.gnupg/S.gpg-agent [3379 ms] [3379 ms] Stop (12 ms): Run in container: gpgconf --list-dir agent-socket [3379 ms] Start: Run in container: gpgconf --list-dir homedir [3383 ms] /home/vscode/.gnupg [3383 ms] [3383 ms] Stop (4 ms): Run in container: gpgconf --list-dir homedir [3383 ms] Start: Run in container: ls '/home/vscode/.gnupg/private-keys-v1.d' 2>/dev/null [3386 ms] [3387 ms] [3387 ms] Exit code 2 [3387 ms] Stop (4 ms): Run in container: ls '/home/vscode/.gnupg/private-keys-v1.d' 2>/dev/null [3387 ms] Start: Run in container: mkdir -p -m 700 '/home/vscode/.gnupg' [3387 ms] Start: Run in Host: docker exec -i -u vscode 39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b /bin/sh [3387 ms] Stop (29 ms): Launching Remote-Containers helper. [3388 ms] userEnvProbe: loginInteractiveShell (default) [3388 ms] userEnvProbe shell: /bin/bash [3393 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-17501b613931529f0c026a4d76420d7425298125.js' >/tmp/vscode-remote-containers-17501b613931529f0c026a4d76420d7425298125.js [3394 ms] [3394 ms] [3394 ms] Stop (7 ms): Run in container: mkdir -p -m 700 '/home/vscode/.gnupg' [3394 ms] Start: Run in Host: gpgconf --list-dir homedir [3398 ms] Start: Run in container: # Test for /home/vscode/.ssh/known_hosts and ssh [3400 ms] Stop (6 ms): Run in Host: gpgconf --list-dir homedir [3401 ms] /home/user/.gnupg [3401 ms] [3402 ms] /home/vscode/.ssh/known_hosts exists [3402 ms] [3402 ms] Exit code 1 [3402 ms] Stop (4 ms): Run in container: # Test for /home/vscode/.ssh/known_hosts and ssh [3402 ms] Start: Run in container: gpgconf --list-dir homedir [3406 ms] /home/vscode/.gnupg [3406 ms] [3406 ms] Stop (4 ms): Run in container: gpgconf --list-dir homedir [3415 ms] Start: Run in Host: gpg-connect-agent updatestartuptty /bye [3424 ms] Stop (9 ms): Run in Host: gpg-connect-agent updatestartuptty /bye [3482 ms] Starting monitor process... [3494 ms] Received message: [{"type":"configure","sequence":0,"options":{"cwd":"\\wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo","dockerCLI":"docker","env":{"SHELL":"/bin/sh","WSL_DISTRO_NAME":"Ubuntu-20.04","SSH_AUTH_SOCK":"/tmp/ssh-20WGT4aHKYXT/agent.531","REMOTE_CONTAINERS_IPC":"","SSH_AGENT_PID":"541","NAME":"nb-michele","LOGNAME":"user","HOME":"/home/user","LANG":"C.UTF-8","TERM":"xterm-256color","REMOTE_CONTAINERS_SOCKETS":"[]","USER":"user","SHLVL":"0","WSLENV":"","XDG_DATA_DIRS":"/usr/local/share:/usr/share:/var/lib/snapd/desktop","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/Git/cmd:/mnt/d/Program Files/Microsoft VS Code/bin:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/d/ST/STM32CubeIDE_1.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346/tools/bin:/mnt/c/Program Files/CMake/bin:/mnt/c/Users/mycurrentwindowsuser/AppData/Local/Microsoft/WindowsApps:/snap/bin","HOSTTYPE":"x8664","OLDPWD":"/mnt/d/Program Files/Microsoft VS Code","":"/home/user/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\Users\mycurrentwindowsuser\.vscode\extensions\ms-vscode-remote.remote-containers-0.209.5\scripts\ssh-askpass.bat","VSCODE_SSH_ASKPASS_NODE":"D:\Program Files\Microsoft VS Code\Code.exe","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"c:\Users\mycurrentwindowsuser\.vscode\extensions\ms-vscode-remote.remote-containers-0.209.5\dist\common\sshAskpass.js","VSCODE_SSH_ASKPASS_HANDLE":"\\.\pipe\ssh-askpass-104532e7d63e3069ae5839d911126430246d3488-sock","DOCKER_CONTEXT":"default"},"containerId":"39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b","user":"vscode","sessionId":"74527466-b03d-4dc7-bc92-2e50e1a4c8d61639388026418","logLevel":1,"delay":10000}}] [3839 ms] [3840 ms] [3840 ms] Stop (479 ms): Run in container: touch '/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e' [3840 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node /tmp/vscode-remote-containers-17501b613931529f0c026a4d76420d7425298125.js $; }; f' || true [3870 ms] [3870 ms] [3870 ms] Stop (30 ms): Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node /tmp/vscode-remote-containers-17501b613931529f0c026a4d76420d7425298125.js $; }; f' || true [3870 ms] Start: Preparing Extensions [3870 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null [3874 ms] [3875 ms] [3875 ms] Exit code 1 [3875 ms] Stop (5 ms): Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null [3876 ms] Extensions cache, install extensions: None [3876 ms] Start: Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true [3881 ms] cschlosser.doxdocgen-1.3.2 jeff-hykin.better-cpp-syntax-1.15.10 llvm-vs-code-extensions.vscode-clangd-0.1.13 marus25.cortex-debug-0.4.10 ms-azuretools.vscode-docker-1.18.0 ms-vscode-remote.remote-containers-0.205.2 ms-vscode-remote.remote-ssh-0.66.1 ms-vscode-remote.remote-ssh-edit-0.66.1 ms-vscode-remote.remote-wsl-0.58.5 ms-vscode.cmake-tools-1.9.2 ms-vscode.cpptools-1.7.1 ms-vscode.cpptools-extension-pack-1.1.0 ms-vscode.cpptools-themes-1.0.0 twxs.cmake-0.0.17 [3881 ms] [3882 ms] Stop (6 ms): Run in container: test -d /home/vscode/.vscode-server/extensionsCache && ls /home/vscode/.vscode-server/extensionsCache || true [3882 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true [4022 ms] cschlosser.doxdocgen-1.3.2 jeff-hykin.better-cpp-syntax-1.15.10 llvm-vs-code-extensions.vscode-clangd-0.1.13 marus25.cortex-debug-0.4.10 ms-azuretools.vscode-docker-1.18.0 ms-vscode-remote.remote-containers-0.205.2 ms-vscode-remote.remote-ssh-0.66.1 ms-vscode-remote.remote-ssh-edit-0.66.1 ms-vscode-remote.remote-wsl-0.58.5 ms-vscode.cmake-tools-1.9.1 ms-vscode.cmake-tools-1.9.2 ms-vscode.cpptools-1.7.1 ms-vscode.cpptools-extension-pack-1.1.0 ms-vscode.cpptools-themes-1.0.0 twxs.cmake-0.0.17 [4022 ms] [4023 ms] Stop (141 ms): Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true [4023 ms] Extensions cache, link in container: None [4024 ms] Stop (154 ms): Preparing Extensions [4024 ms] Start: Run in container: for pid in cd /proc && ls -d [0-9]*; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr " [4037 ms] [4037 ms] [4038 ms] Stop (645 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-17501b613931529f0c026a4d76420d7425298125.js' >/tmp/vscode-remote-containers-17501b613931529f0c026a4d76420d7425298125.js [4039 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-17501b613931529f0c026a4d76420d7425298125.js' >/tmp/vscode-remote-containers-server-17501b613931529f0c026a4d76420d7425298125.js_1639388031714 [4075 ms] [4075 ms] [4075 ms] Stop (36 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-17501b613931529f0c026a4d76420d7425298125.js' >/tmp/vscode-remote-containers-server-17501b613931529f0c026a4d76420d7425298125.js_1639388031714 [4079 ms] Start: Run in Container: /bin/bash -lic '/home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' -p '"574f6bb111ea0a9613269de563315cba" + JSON.stringify(process.env) + "574f6bb111ea0a9613269de563315cba"' [4105 ms] Stop (81 ms): Run in container: for pid in cd /proc && ls -d [0-9]*; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr " [4105 ms] Running extension host agents: [] [4105 ms] Start: Starting VS Code Server [4106 ms] Start: Run in Container: /home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/server.sh --log trace --force-disable-user-env --use-host-proxy --port 0 --extensions-download-dir /home/vscode/.vscode-server/extensionsCache --start-server --disable-websocket-compression [4277 ms]

*

Extension host agent listening on 41961

[4277 ms] Stop (172 ms): Starting VS Code Server [4277 ms] Start: Run in container: echo 41961 >'/home/vscode/.vscode-server/data/Machine/.devport-7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e' [4281 ms] [4281 ms] [4281 ms] Stop (4 ms): Run in container: echo 41961 >'/home/vscode/.vscode-server/data/Machine/.devport-7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e' [4281 ms] Port forwarding for container port 41961 starts listening on local port. [4283 ms] Port forwarding local port 41961 to container port 41961 [4283 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.onCreateCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.onCreateCommandMarker' ; } 2> /dev/null [4285 ms] [4285 ms] [4285 ms] Exit code 1 [4285 ms] Stop (2 ms): Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.onCreateCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.onCreateCommandMarker' ; } 2> /dev/null [4285 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.updateContentCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.updateContentCommandMarker' ; } 2> /dev/null [4288 ms] [4288 ms] [4288 ms] Exit code 1 [4288 ms] Stop (3 ms): Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.updateContentCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.updateContentCommandMarker' ; } 2> /dev/null [4288 ms] Start: Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.postCreateCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.postCreateCommandMarker' ; } 2> /dev/null [4290 ms] [4290 ms] [4290 ms] Exit code 1 [4291 ms] Stop (3 ms): Run in container: test ! -f '/home/vscode/.vscode-server/data/Machine/.postCreateCommandMarker' && set -o noclobber && mkdir -p '/home/vscode/.vscode-server/data/Machine' && { > '/home/vscode/.vscode-server/data/Machine/.postCreateCommandMarker' ; } 2> /dev/null [4294 ms] Stop (215 ms): Run in Container: /bin/bash -lic '/home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' -p '"574f6bb111ea0a9613269de563315cba" + JSON.stringify(process.env) + "574f6bb111ea0a9613269de563315cba"' [4295 ms] 574f6bb111ea0a9613269de563315cba{"HOSTNAME":"39868df4d9a5","REMOTE_CONTAINERS_IPC":"/tmp/vscode-remote-containers-ipc-17501b613931529f0c026a4d76420d7425298125.sock","PWD":"/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e","HOME":"/home/vscode","LS_COLORS":"","LESSCLOSE":"/usr/bin/lesspipe %s %s","REMOTE_CONTAINERS_SOCKETS":"[\"/tmp/vscode-ssh-auth-17501b613931529f0c026a4d76420d7425298125.sock\",\"/home/vscode/.gnupg/S.gpg-agent\"]","LESSOPEN":"| /usr/bin/lesspipe %s","USER":"vscode","SHLVL":"0","PROMPTDIRTRIM":"4","PATH":"/gcc-arm-none-eabi-10.3-2021.10/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin","":"/home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node"}574f6bb111ea0a9613269de563315cba [4295 ms] bash: cannot set terminal process group (45): Inappropriate ioctl for device bash: no job control in this shell

[4295 ms] userEnvProbe parsed: { "HOSTNAME": "39868df4d9a5", "REMOTE_CONTAINERS_IPC": "/tmp/vscode-remote-containers-ipc-17501b613931529f0c026a4d76420d7425298125.sock", "PWD": "/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e", "HOME": "/home/vscode", "LS_COLORS": "", "LESSCLOSE": "/usr/bin/lesspipe %s %s", "REMOTE_CONTAINERS_SOCKETS": "[\"/tmp/vscode-ssh-auth-17501b613931529f0c026a4d76420d7425298125.sock\",\"/home/vscode/.gnupg/S.gpg-agent\"]", "LESSOPEN": "| /usr/bin/lesspipe %s", "USER": "vscode", "SHLVL": "0", "PROMPTDIRTRIM": "4", "PATH": "/gcc-arm-none-eabi-10.3-2021.10/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin", "": "/home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node" } [4295 ms] userEnvProbe PATHs: Probe: '/gcc-arm-none-eabi-10.3-2021.10/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin' Container: '/gcc-arm-none-eabi-10.3-2021.10/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' [4297 ms] Stop (4091 ms): Resolving Remote [4299 ms] Start: Run in container: # Test for /home/vscode/.gitconfig and git [4303 ms] /home/vscode/.gitconfig exists [4303 ms] [4303 ms] Exit code 1 [4303 ms] Stop (4 ms): Run in container: # Test for /home/vscode/.gitconfig and git [4308 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node /tmp/vscode-remote-containers-17501b613931529f0c026a4d76420d7425298125.js $; }; f' || true [4308 ms] Port forwarding connection from 55686 > 41961 > 41961 in the container. [4334 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=74527466-b03d-4dc7-bc92-2e50e1a4c8d61639388026418 39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b /home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node -e [4334 ms] [4335 ms] [4335 ms] Stop (27 ms): Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node /tmp/vscode-remote-containers-17501b613931529f0c026a4d76420d7425298125.js $; }; f' || true [4335 ms] Start: Run in container: mkdir -p '/home/vscode/.vscode-server/data/Machine' && [ "$(cat '/home/vscode/.vscode-server/data/Machine/.postStartCommandMarker' 2>/dev/null)" != '2021-12-13T09:33:51.3870063Z' ] && echo '2021-12-13T09:33:51.3870063Z' > '/home/vscode/.vscode-server/data/Machine/.postStartCommandMarker' [4344 ms] [4344 ms] [4344 ms] Stop (9 ms): Run in container: mkdir -p '/home/vscode/.vscode-server/data/Machine' && [ "$(cat '/home/vscode/.vscode-server/data/Machine/.postStartCommandMarker' 2>/dev/null)" != '2021-12-13T09:33:51.3870063Z' ] && echo '2021-12-13T09:33:51.3870063Z' > '/home/vscode/.vscode-server/data/Machine/.postStartCommandMarker' [4475 ms] [09:33:53] Extension host agent started. [4491 ms] [09:33:53] Started scanning user extensions [4495 ms] [09:33:53] resolveShellEnv(): running (macOS/Linux) [4497 ms] [09:33:53] getUnixShellEnvironment#runAsNode undefined [4498 ms] [09:33:53] getUnixShellEnvironment#noAttach undefined [4501 ms] [09:33:53] getUnixShellEnvironment#env { HOSTNAME: '39868df4d9a5', HOME: '/home/vscode', REMOTE_CONTAINERS_IPC: '/tmp/vscode-remote-containers-ipc-17501b613931529f0c026a4d76420d7425298125.sock', PATH: '/gcc-arm-none-eabi-10.3-2021.10/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', VSCODE_AGENT_FOLDER: '/home/vscode/.vscode-server', REMOTE_CONTAINERS_SOCKETS: '["/tmp/vscode-ssh-auth-17501b613931529f0c026a4d76420d7425298125.sock","/home/vscode/.gnupg/S.gpg-agent"]', SHELL: '/bin/bash', PWD: '/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e', VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH: '/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/remote/node_modules', VSCODE_CWD: '/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e', ELECTRON_RUN_AS_NODE: '1', ELECTRON_NO_ATTACH_CONSOLE: '1' } [4511 ms] [09:33:53] ExtensionManagementService.refreshReportedCache [4512 ms] [09:33:53] RequestService#request https://az764295.vo.msecnd.net/extensions/marketplace.json [4512 ms] [09:33:53] resolveShellEnv(): skipped (--force-disable-user-env) [4512 ms] [09:33:53] getUnixShellEnvironment#shell /bin/bash [4513 ms] [09:33:53] getUnixShellEnvironment#spawn ["-ilc"] '/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' -p '"e9a1b348d8e6" + JSON.stringify(process.env) + "e9a1b348d8e6"' [4705 ms] [09:33:53] getUnixShellEnvironment#raw e9a1b348d8e6{"SHELL":"/bin/bash","HOSTNAME":"39868df4d9a5","VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH":"/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/remote/node_modules","ELECTRON_RUN_AS_NODE":"1","REMOTE_CONTAINERS_IPC":"/tmp/vscode-remote-containers-ipc-17501b613931529f0c026a4d76420d7425298125.sock","PWD":"/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e","HOME":"/home/vscode","LS_COLORS":"","VSCODE_AGENT_FOLDER":"/home/vscode/.vscode-server","LESSCLOSE":"/usr/bin/lesspipe %s %s","REMOTE_CONTAINERS_SOCKETS":"[\"/tmp/vscode-ssh-auth-17501b613931529f0c026a4d76420d7425298125.sock\",\"/home/vscode/.gnupg/S.gpg-agent\"]","LESSOPEN":"| /usr/bin/lesspipe %s","USER":"vscode","SHLVL":"0","PROMPT_DIRTRIM":"4","VSCODE_CWD":"/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e","ELECTRON_NO_ATTACHCONSOLE":"1","PATH":"/gcc-arm-none-eabi-10.3-2021.10/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin","":"/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node"}e9a1b348d8e6

[4706 ms] [09:33:53] getUnixShellEnvironment#stderr bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell

[4706 ms] [09:33:53] getUnixShellEnvironment#result { SHELL: '/bin/bash', HOSTNAME: '39868df4d9a5', VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH: '/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/remote/node_modules', REMOTE_CONTAINERS_IPC: '/tmp/vscode-remote-containers-ipc-17501b613931529f0c026a4d76420d7425298125.sock', PWD: '/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e', HOME: '/home/vscode', LS_COLORS: '', VSCODE_AGENT_FOLDER: '/home/vscode/.vscode-server', LESSCLOSE: '/usr/bin/lesspipe %s %s', REMOTE_CONTAINERS_SOCKETS: '["/tmp/vscode-ssh-auth-17501b613931529f0c026a4d76420d7425298125.sock","/home/vscode/.gnupg/S.gpg-agent"]', LESSOPEN: '| /usr/bin/lesspipe %s', USER: 'vscode', SHLVL: '0', PROMPT_DIRTRIM: '4', VSCODECWD: '/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e', PATH: '/gcc-arm-none-eabi-10.3-2021.10/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin', : '/vscode/vscode-server/bin/linux-x64/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' } [4750 ms] [09:33:53] Scanned user extensions: 5 [4849 ms] [09:33:53] ExtensionManagementService.refreshControlCache { malicious: [ { id: 'visualstuiocode.emmet' }, { id: 'joaomoreno.banana' }, { id: 'JacobeanResearchandDevelopmentLLC.vscode-scxml-preview' }, { id: 'joaquin6.package-watch' }, { id: 'KazuoCode.gthubsum' }, { id: 'MaxGotovkin.tslens' } ], unsupportedPreReleaseExtensions: { 'github.vscode-pull-request-github-insiders': { id: 'github.vscode-pull-request-github', displayName: 'GitHub Pull Requests and Issues' } } } [4850 ms] [09:33:53] Started scanning user extensions [4871 ms] [09:33:53] Scanned user extensions: 5 [4897 ms] Port forwarding connection from 59109 > 41961 > 41961 in the container. [4915 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=74527466-b03d-4dc7-bc92-2e50e1a4c8d61639388026418 39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b /home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node -e [4922 ms] [09:33:53] [::ffff:127.0.0.1][d80548fb][ManagementConnection] New connection established. [4942 ms] [09:33:53] Started scanning system extensions [4942 ms] [09:33:53] Started scanning user extensions [4943 ms] [09:33:53] Started scanning user extensions [4943 ms] [09:33:53] Started scanning system extensions [4943 ms] [09:33:53] Started scanning user extensions [4944 ms] [09:33:53] Started scanning user extensions [5989 ms] Received message: [{"type":"configure","sequence":1,"options":{"cwd":"\\wsl$\Ubuntu-20.04\home\user\repo\mycurrentrepo","dockerCLI":"docker","env":{"SHELL":"/bin/sh","WSL_DISTRO_NAME":"Ubuntu-20.04","SSH_AUTH_SOCK":"/tmp/ssh-20WGT4aHKYXT/agent.531","REMOTE_CONTAINERS_IPC":"","SSH_AGENT_PID":"541","NAME":"nb-michele","LOGNAME":"user","HOME":"/home/user","LANG":"C.UTF-8","TERM":"xterm-256color","REMOTE_CONTAINERS_SOCKETS":"[]","USER":"user","SHLVL":"0","WSLENV":"","XDG_DATA_DIRS":"/usr/local/share:/usr/share:/var/lib/snapd/desktop","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/Git/cmd:/mnt/d/Program Files/Microsoft VS Code/bin:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/d/ST/STM32CubeIDE_1.8.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346/tools/bin:/mnt/c/Program Files/CMake/bin:/mnt/c/Users/mycurrentwindowsuser/AppData/Local/Microsoft/WindowsApps:/snap/bin","HOSTTYPE":"x8664","OLDPWD":"/mnt/d/Program Files/Microsoft VS Code","":"/home/user/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\Users\mycurrentwindowsuser\.vscode\extensions\ms-vscode-remote.remote-containers-0.209.5\scripts\ssh-askpass.bat","VSCODE_SSH_ASKPASS_NODE":"D:\Program Files\Microsoft VS Code\Code.exe","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"c:\Users\mycurrentwindowsuser\.vscode\extensions\ms-vscode-remote.remote-containers-0.209.5\dist\common\sshAskpass.js","VSCODE_SSH_ASKPASS_HANDLE":"\\.\pipe\ssh-askpass-104532e7d63e3069ae5839d911126430246d3488-sock","DOCKER_CONTEXT":"default"},"containerId":"39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b","user":"vscode","sessionId":"74527466-b03d-4dc7-bc92-2e50e1a4c8d61639388026418","logLevel":1,"delay":10000}}] [6078 ms] [09:33:54] [::ffff:127.0.0.1][548ab562][ExtensionHostConnection] New connection established. [6079 ms] [09:33:54] [::ffff:127.0.0.1][548ab562][ExtensionHostConnection] <250> Launched Extension Host Process. [6130 ms] Port forwarding process for 55686 > 41961 > 41961 in the container: [ { "pid": 6652, "ppid": 14152, "bin": "D:\Program Files\Microsoft VS Code\Code.exe", "name": "Code.exe", "cmd": "\"D:\Program Files\Microsoft VS Code\Code.exe\" --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=1596,15020354334589423717,1016113751082348459,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess,WinRetrieveSuggestionsOnlyOnDemand --lang=it --service-sandbox-type=none --user-data-dir=\"C:\Users\mycurrentwindowsuser\AppData\Roaming\Code\" --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --mojo-platform-channel-handle=1956 /prefetch:8" } ] [6483 ms] Port forwarding process for 59109 > 41961 > 41961 in the container: [ { "pid": 6652, "ppid": 14152, "bin": "D:\Program Files\Microsoft VS Code\Code.exe", "name": "Code.exe", "cmd": "\"D:\Program Files\Microsoft VS Code\Code.exe\" --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=1596,15020354334589423717,1016113751082348459,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess,WinRetrieveSuggestionsOnlyOnDemand --lang=it --service-sandbox-type=none --user-data-dir=\"C:\Users\mycurrentwindowsuser\AppData\Roaming\Code\" --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --mojo-platform-channel-handle=1956 /prefetch:8" } ] [6533 ms] Start: Run in container: cat /proc/261/environ [6538 ms] Stop (5 ms): Run in container: cat /proc/261/environ [7442 ms] Start: Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [7493 ms] Stop (51 ms): Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [7596 ms] Port forwarding connection from 62848 > 41961 > 41961 in the container. [7617 ms] Start: Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=74527466-b03d-4dc7-bc92-2e50e1a4c8d61639388026418 39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b /home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node -e [8533 ms] Start: Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [8645 ms] Start: Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [8673 ms] Start: Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [8673 ms] Start: Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [8741 ms] Stop (96 ms): Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [8741 ms] Stop (68 ms): Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [8742 ms] Stop (209 ms): Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [8742 ms] Stop (69 ms): Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [8836 ms] Start: Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [8848 ms] Stop (12 ms): Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [8944 ms] Start: Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [8957 ms] Port forwarding process for 62848 > 41961 > 41961 in the container: [ { "pid": 6652, "ppid": 14152, "bin": "D:\Program Files\Microsoft VS Code\Code.exe", "name": "Code.exe", "cmd": "\"D:\Program Files\Microsoft VS Code\Code.exe\" --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=1596,15020354334589423717,1016113751082348459,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess,WinRetrieveSuggestionsOnlyOnDemand --lang=it --service-sandbox-type=none --user-data-dir=\"C:\Users\mycurrentwindowsuser\AppData\Roaming\Code\" --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --mojo-platform-channel-handle=1956 /prefetch:8" } ] [8957 ms] Stop (13 ms): Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [9020 ms] Start: Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [9029 ms] Stop (9 ms): Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [9079 ms] Start: Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [9087 ms] Stop (8 ms): Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [13929 ms] Port forwarding 62848 > 41961 > 41961 stderr: Remote close [14044 ms] Extensions cache, copy to shared cache: None [14098 ms] Stop (6481 ms): Run in Host: docker exec -i -u vscode -e VSCODE_REMOTE_CONTAINERS_SESSION=74527466-b03d-4dc7-bc92-2e50e1a4c8d61639388026418 39868df4d9a54223dffbd2513795880c3f2791f5940838348d7197f83f76436b /home/vscode/.vscode-server/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node -e [14099 ms] Port forwarding 62848 > 41961 > 41961 terminated with code 0 and signal null. [15508 ms] Start: Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531 [15529 ms] Stop (21 ms): Run in Host: socat - UNIX-CONNECT:/tmp/ssh-20WGT4aHKYXT/agent.531

chrmarti commented 2 years ago

The log looks good. Could you append ~/.profile, ~/.bash_profile and ~/.bashrc from your Ubuntu-20.04 distro?

Also check what the output of ssh-add -l is in WSL and in the container.

mr2c12 commented 2 years ago

From WSL:

$ cat ~/.profile

~/.profile: executed by the command interpreter for login shells.

This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login

exists.

see /usr/share/doc/bash/examples/startup-files for examples.

the files are located in the bash-doc package.

the default umask is set in /etc/profile; for setting the umask

for ssh logins, install and configure the libpam-umask package.

umask 022

if running bash

if [ -n "$BASH_VERSION" ]; then

include .bashrc if it exists

if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
fi

fi

set PATH so it includes user's private bin if it exists

if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi

set PATH so it includes user's private bin if it exists

if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi

$ cat ~/.bash_profile if [ -z "$SSH_AUTH_SOCK" ]; then

Check for a currently running instance of the agent

RUNNING_AGENT="ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'" if [ "$RUNNING_AGENT" = "0" ]; then

Launch a new instance of the agent

    ssh-agent -s &> $HOME/.ssh/ssh-agent

fi eval cat $HOME/.ssh/ssh-agent fi

$ cat ~/.bashrc

~/.bashrc: executed by bash(1) for non-login shells.

see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)

for examples

If not running interactively, don't do anything

case $- in i) ;; *) return;; esac

don't put duplicate lines or lines starting with space in the history.

See bash(1) for more options

HISTCONTROL=ignoreboth

append to the history file, don't overwrite it

shopt -s histappend

for setting history length see HISTSIZE and HISTFILESIZE in bash(1)

HISTSIZE=1000 HISTFILESIZE=2000

check the window size after each command and, if necessary,

update the values of LINES and COLUMNS.

shopt -s checkwinsize

If set, the pattern "**" used in a pathname expansion context will

match all files and zero or more directories and subdirectories.

shopt -s globstar

make less more friendly for non-text input files, see lesspipe(1)

[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

set variable identifying the chroot you work in (used in the prompt below)

if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi

set a fancy prompt (non-color, unless we know we "want" color)

case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac

uncomment for a colored prompt, if the terminal has the capability; turned

off by default to not distract the user: the focus in a terminal window

should be on the output of commands, not on the prompt

force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then

We have color support; assume it's compliant with Ecma-48

    # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
    # a case would tend to support setf rather than setaf.)
    color_prompt=yes
else
    color_prompt=
fi

fi

if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m]\$ ' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt

If this is an xterm set the title to user@host:dir

case "$TERM" in xterm|rxvt) PS1="[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a]$PS1" ;; *) ;; esac

enable color support of ls and also add handy aliases

if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto'

alias dir='dir --color=auto'

#alias vdir='vdir --color=auto'

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

fi

colored GCC warnings and errors

export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

some more ls aliases

alias ll='ls -alF' alias la='ls -A' alias l='ls -CF'

Add an "alert" alias for long running commands. Use like so:

sleep 10; alert

alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s[0-9]+\s//;s/[;&|]\s*alert$//'\'')"'

Alias definitions.

You may want to put all your additions into a separate file like

~/.bash_aliases, instead of adding them here directly.

See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi

enable programmable completion features (you don't need to enable

this, if it's already enabled in /etc/bash.bashrc and /etc/profile

sources /etc/bash.bashrc).

if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi

$ ssh-add -l The agent has no identities.

(does it make sense? I can puill/push to remote ssh repositories)

In the dev container terminal:

$ ssh-add -l The agent has no identities.

mr2c12 commented 2 years ago

Executing:

$ ssh-add

within the WSL enviroment seems to fix the "missing ssh keys" in the dev container.

Thanks

chrmarti commented 2 years ago

Great! The key needs to be added with ssh-add to the ssh-agent for it to work. Closing the issue, thanks.