vscode-remote-release
vscode-remote-release copied to clipboard
VSCode SSH Server fails to copy to an IPv6 address
- VSCode Version: Version: 1.69.0 (Universal) Commit: 92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9
- Local OS Version: macOS 12.3.1 (21E258)
- Remote OS Version: CentOS Stream release 8
- Remote Extension/Connection Type: SSH/Containers/WSL/Server
- Logs: exthost6.zip
Steps to Reproduce:
- Click the little green button at the bottom left
- Click "connect to host"
- Enter IPv6 address Press enter.
- Expected: Completes instantly. Actual: Hangs on this screen:
Does this issue occur when you try this locally?: Yes Does this issue occur when you try this locally and all extensions are disabled?: Yes
In the logs, I can see SSH authentication was successful. I think the problem is that SCP needs a "-6" argument to handle IPv6 addresses.
[16:41:17.435] Got request to download on client for {"platform":"linux","arch":"x64","destFolder":"/home/drewong/.vscode-server/bin/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9"}
[16:41:17.435] Downloading VS Code server locally...
[16:41:19.891] Downloaded VS Code server to /var/folders/y2/243_frbj0pg_gv_s_29tbc_c0000gn/T/092d96c6-e2f4-4014-a174-5df4677448e7
[16:41:19.892] Renamed VS Code server to /var/folders/y2/243_frbj0pg_gv_s_29tbc_c0000gn/T/vscode_server_1657669279891/vscode-server.tar.gz
[16:41:19.894] PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Library/CPE/bin/FBSKSAgent.app/Contents/MacOS:/opt/facebook/bin:/opt/facebook/bin/biggrep:/opt/facebook/nix/bin:/opt/facebook/ops/scripts/chef:/opt/homebrew/bin:/usr/local/munki:/opt/facebook/hg/bin
[16:41:19.894] Checking ssh with "ssh -V"
[16:41:19.899] > OpenSSH_8.6p1, LibreSSL 3.3.5
[16:41:19.900] Testing scp with "scp"
[16:41:19.904] scp exited with code: 1
[16:41:19.904] Got stderr from scp: usage: scp [-346ABCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]
[-J destination] [-l limit] [-o ssh_option] [-P port]
[-S program] source ... target
[16:41:19.905] Copying file to remote with scp -o ConnectTimeout=15 'vscode-server.tar.gz' 'vscode-scp-done.flag' '2620:10d:c0b9:bb:1ac0:4dff:fe06:d16d':'/home/drewong/.vscode-server/bin/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9'
[16:41:19.905] Using cwd: file:///var/folders/y2/243_frbj0pg_gv_s_29tbc_c0000gn/T/vscode_server_1657669279891
[16:41:20.092] > ssh: connect to host 0.0.10.60 port 22: No route to host
> lost connection
[16:41:20.340] "Copy server to host" terminal command done
[16:41:20.499] >
[16:41:23.434] >
[16:41:26.540] >
[16:41:29.509] >
[16:41:32.436] >
[16:41:35.550] >
[16:41:38.437] >
[16:41:41.491] >
[16:41:44.439] >