vscode 在Fedora上的SSH服务器:无法建立连接

wj8zmpe1  于 5个月前  发布在  Vscode
关注(0)|答案(3)|浏览(89)

测试 #226689
远程 - SSH
v0.114.2024082315
使用一个窗口运行 devcontainer:

{
	"dockerFile": "Dockerfile",
	"appPort": 1234,
	"overrideCommand": false
}
FROM fedora:latest

RUN dnf install -y openssh-server

RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -i 's/#AllowTcpForwarding yes/AllowTcpForwarding yes/' /etc/ssh/sshd_config

RUN ssh-keygen -A

RUN echo "root:foobar" | chpasswd

EXPOSE 1234
CMD ["/usr/sbin/sshd", "-D", "-p", "1234"]

然后连接到 ssh 服务器: root@localhost:1234

日志:

[16:04:44.157] Log Level: 2
[16:04:44.161] SSH Resolver called for "ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d", attempt 1
[16:04:44.161] "remote.SSH.useLocalServer": true
[16:04:44.161] "remote.SSH.useExecServer": true
[16:04:44.162] "remote.SSH.path": undefined
[16:04:44.162] "remote.SSH.configFile": undefined
[16:04:44.162] "remote.SSH.useFlock": true
[16:04:44.162] "remote.SSH.lockfilesInTmp": false
[16:04:44.162] "remote.SSH.localServerDownload": auto
[16:04:44.162] "remote.SSH.remoteServerListenOnSocket": false
[16:04:44.162] "remote.SSH.showLoginTerminal": false
[16:04:44.162] "remote.SSH.defaultExtensions": []
[16:04:44.162] "remote.SSH.loglevel": 2
[16:04:44.162] "remote.SSH.enableDynamicForwarding": true
[16:04:44.162] "remote.SSH.enableRemoteCommand": false
[16:04:44.162] "remote.SSH.serverPickPortsFromRange": {}
[16:04:44.162] "remote.SSH.serverInstallPath": {}
[16:04:44.163] "remote.SSH.permitPtyAllocation": false
[16:04:44.163] "remote.SSH.preferredLocalPortRange: undefined
[16:04:44.163] "remote.SSH.useCurlAndWgetConfigurationFiles: false
[16:04:44.166] VS Code version: 1.93.0-insider
[16:04:44.166] Remote-SSH version: remote-ssh@0.114.2024082315
[16:04:44.167] darwin arm64
[16:04:44.171] SSH Resolver called for host: root@localhost
[16:04:44.171] Setting up SSH remote "localhost"
[16:04:44.173] Acquiring local install lock: /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-remote-ssh-fd5f9128-install.lock
[16:04:44.174] Looking for existing server data file at /Users/chrmarti/Library/Application Support/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-fd5f9128-ff7a154d5e5e9034914f0466420f0f1407f0c95e-0.114.2024082315-es/data.json
[16:04:44.174] No existing data file
[16:04:44.175] Using commit id "ff7a154d5e5e9034914f0466420f0f1407f0c95e" and quality "insider" for server
[16:04:44.176] Script variables:
 {
  "InstallExitCode.24": "AlreadyInProgress",
  "InstallExitCode.25": "ServerDownloadFailed",
  "InstallExitCode.26": "NoDownloaderAvailable",
  "InstallExitCode.27": "UnsupportedArch",
  "InstallExitCode.28": "StatusCheckFailed",
  "InstallExitCode.29": "NeedInsidersArch",
  "InstallExitCode.30": "NoDownloaderAvailableForStatusCheck",
  "InstallExitCode.31": "ServerTransferFailed",
  "InstallExitCode.32": "ServerFailedToStart",
  "InstallExitCode.33": "NeedInsidersWindows",
  "InstallExitCode.34": "CreateInstallDirFailed",
  "InstallExitCode.35": "UnsupportedPlatform",
  "InstallExitCode.36": "ServerTerminatedCVE20201416",
  "InstallExitCode.37": "UnpackFailed",
  "InstallExitCode.AlreadyInProgress": "24",
  "InstallExitCode.ServerDownloadFailed": "25",
  "InstallExitCode.NoDownloaderAvailable": "26",
  "InstallExitCode.NoDownloaderAvailableForStatusCheck": "30",
  "InstallExitCode.UnsupportedArch": "27",
  "InstallExitCode.StatusCheckFailed": "28",
  "InstallExitCode.NeedInsidersArch": "29",
  "InstallExitCode.ServerTransferFailed": "31",
  "InstallExitCode.ServerFailedToStart": "32",
  "InstallExitCode.NeedInsidersWindows": "33",
  "InstallExitCode.CreateInstallDirFailed": "34",
  "InstallExitCode.UnsupportedPlatform": "35",
  "InstallExitCode.ServerTerminatedCVE20201416": "36",
  "InstallExitCode.UnpackFailed": "37",
  "InstallUnpackCode.Success": "success",
  "InstallUnpackCode.Error": "error",
  "InstallUnpackCode.MissingFiles": "missingFiles",
  "uuid": "ddf4c16006f0",
  "startMarker": "ddf4c16006f0: running",
  "commitId": "ff7a154d5e5e9034914f0466420f0f1407f0c95e",
  "quality": "insider",
  "token": "60b424ee-2342-47ee-9360-1024e7ba3ca1",
  "vscodeAgentFolder": "$HOME/.vscode-server-insiders",
  "allowClientDownload": "1",
  "forceClientDownload": "0",
  "cliNameInArchive": "code-insiders",
  "ignoreWgetConfigFlag": " --no-config ",
  "ignoreCurlConfigFlag": " --disable ",
  "wgetTriesSegment": "--tries=1",
  "listenArgs": "--on-host=127.0.0.1 --on-port",
  "printArgs": "echo -e SSH_AUTH_SOCK==$SSH_AUTH_SOCK==\\nDISPLAY==$DISPLAY==",
  "getDownloadServerStartTrigger": "ddf4c16006f0:trigger_server_download",
  "getDownloadServerEndTrigger": "ddf4c16006f0:trigger_server_download_end",
  "getProgressDownloading": "ddf4c16006f0%%1%%",
  "getProgressInstalling": "ddf4c16006f0%%2%%"
}
[16:04:44.177] Install and start server if needed
[16:04:44.181] PATH: /Users/chrmarti/bin:/Users/chrmarti/.nvm/versions/node/v20.13.1/bin:/opt/local/bin:/opt/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/chrmarti/.dotnet/tools:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin
[16:04:44.181] Checking ssh with "ssh -V"
[16:04:44.188] > OpenSSH_9.7p1, LibreSSL 3.3.6

[16:04:44.191] askpass server listening on /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-e571dfa504279cdcb46f37b91663766a26f6bef9.sock
[16:04:44.192] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-7df663ac24330ad8a5b3e772f8bfafaf6a3b029b.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","51183","-o","ConnectTimeout=99999","-p","1234","root@localhost"],"serverDataFolderName":".vscode-server-insiders","dataFilePath":"/Users/chrmarti/Library/Application Support/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-fd5f9128-ff7a154d5e5e9034914f0466420f0f1407f0c95e-0.114.2024082315-es/data.json"}
[16:04:44.192] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.x2Qvkw9gNj/Listeners","SHELL":"/bin/zsh","DISPLAY":"/private/tmp/com.apple.launchd.lD53RDuqJV/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-e571dfa504279cdcb46f37b91663766a26f6bef9.sock"}
[16:04:44.192] Spawned 65570
[16:04:44.277] > local-server-1> Running ssh connection command: ssh -v -T -D 51183 -o ConnectTimeout=99999 -p 1234 root@localhost
[16:04:44.279] > local-server-1> Spawned ssh, pid=65583
[16:04:44.284] stderr> OpenSSH_9.7p1, LibreSSL 3.3.6
[16:04:44.307] stderr> debug1: Server host key: ssh-ed25519 SHA256:6tQHoSAUu/x27BCnAFhjqZ3+fmosqlHBpko611gveqs
[16:04:44.419] Got askpass request: {"request":" root@localhost's password: "}
[16:04:44.419] Showing password prompt
[16:04:44.420] Listening for interwindow password on /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-5ce9321866d4f89600b938ce265a075bc80908c1.sock
[16:04:44.420] Writing password prompt to globalState
[16:04:46.524] Got password response
[16:04:46.524] Interactor gave response: ******
[16:04:46.525] Cleaning up other-window auth server
[16:04:46.600] stderr> Authenticated to localhost ([127.0.0.1]:1234) using "password".
[16:04:46.637] > Last failed login: Tue Aug 27 14:04:34 UTC 2024 from 172.17.0.1 on ssh:notty
> There were 14 failed login attempts since the last successful login.
[16:04:46.648] > ready: ddf4c16006f0
[16:04:46.650] > Linux 6.6.32-linuxkit #1 SMP Thu Jun 13 14:13:01 UTC 2024
[16:04:46.650] Platform: linux
[16:04:46.651] > /bin/bash
[16:04:46.651] Shell: bash
[16:04:46.651] Creating bash subshell inside "bash"
[16:04:46.653] > bash version:  5.2.26(1)-release
[16:04:46.656] > ddf4c16006f0: running
[16:04:46.662] > Found existing installation at /root/.vscode-server-insiders...
> Starting VS Code CLI...
> printenv:
[16:04:46.662] >     SHELL=/bin/bash
>     HISTCONTROL=ignoredups
>     HOSTNAME=5435449deb49
>     HISTSIZE=1000
>     DISTTAG=f40container
>     PWD=/root
>     LOGNAME=root
>     FBR=f40
>     MOTD_SHOWN=pam
>     HOME=/root
>     LANG=C.UTF-8
>     FGC=f40
>     SSH_CONNECTION=172.17.0.1 55532 172.17.0.2 1234
>     USER=root
>     SHLVL=2
>     SSH_CLIENT=172.17.0.1 55532 1234
>     PATH=/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>     MAIL=/var/spool/mail/root
>     _=/usr/bin/printenv
[16:04:46.663] > Removing old logfile at /root/.vscode-server-insiders/.cli.ff7a154d5e5e9034914f0466420f0f1407f0c95e.log
[16:04:46.664] > Spawned remote CLI: 1501
[16:04:46.667] > Exec server process not found
[16:04:46.667] stderr> main: line 344: ps: command not found
[16:04:46.669] > ddf4c16006f0: start
> SSH_AUTH_SOCK====
> DISPLAY====
> listeningOn====
> osReleaseId==fedora==
> arch==aarch64==
> vscodeArch==arm64==
> bitness==64==
> tmpDir==/tmp==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> serverStartTime==5==
> execServerToken==11a111aa-1111-11aa-1111-1111a1aa1aa1==
> ddf4c16006f0: end
[16:04:46.669] Received install output: 
SSH_AUTH_SOCK====
DISPLAY====
listeningOn====
osReleaseId==fedora==
arch==aarch64==
vscodeArch==arm64==
bitness==64==
tmpDir==/tmp==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==5==
execServerToken==11a111aa-1111-11aa-1111-1111a1aa1aa1==

[16:04:46.669] Failed to parse remote port from server output
[16:04:46.670] Terminating local server
[16:04:46.673] Resolver error: Error: 
	at v.Create (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:501362)
	at t.handleInstallOutput (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:498684)
	at e (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:553041)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async /Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:575207
	at async t.withShowDetailsEvent (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:578826)
	at async /Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:549746
	at async T (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:547797)
	at async t.resolveWithLocalServer (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:549286)
	at async k (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:572339)
	at async t.resolve (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:576237)
	at async /Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:844358
[16:04:46.673] Local server exit: 15
[16:04:46.678] ------



[16:04:46.822] Opening exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d
[16:04:46.882] Opening exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d
[16:04:46.895] Acquiring local install lock: /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-remote-ssh-fd5f9128-install.lock
[16:04:46.895] Initizing new exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d
[16:04:46.901] Looking for existing server data file at /Users/chrmarti/Library/Application Support/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-fd5f9128-ff7a154d5e5e9034914f0466420f0f1407f0c95e-0.114.2024082315-es/data.json
[16:04:46.901] No existing data file
[16:04:46.902] Using commit id "ff7a154d5e5e9034914f0466420f0f1407f0c95e" and quality "insider" for server
[16:04:46.903] Script variables:
 {
  "InstallExitCode.24": "AlreadyInProgress",
  "InstallExitCode.25": "ServerDownloadFailed",
  "InstallExitCode.26": "NoDownloaderAvailable",
  "InstallExitCode.27": "UnsupportedArch",
  "InstallExitCode.28": "StatusCheckFailed",
  "InstallExitCode.29": "NeedInsidersArch",
  "InstallExitCode.30": "NoDownloaderAvailableForStatusCheck",
  "InstallExitCode.31": "ServerTransferFailed",
  "InstallExitCode.32": "ServerFailedToStart",
  "InstallExitCode.33": "NeedInsidersWindows",
  "InstallExitCode.34": "CreateInstallDirFailed",
  "InstallExitCode.35": "UnsupportedPlatform",
  "InstallExitCode.36": "ServerTerminatedCVE20201416",
  "InstallExitCode.37": "UnpackFailed",
  "InstallExitCode.AlreadyInProgress": "24",
  "InstallExitCode.ServerDownloadFailed": "25",
  "InstallExitCode.NoDownloaderAvailable": "26",
  "InstallExitCode.NoDownloaderAvailableForStatusCheck": "30",
  "InstallExitCode.UnsupportedArch": "27",
  "InstallExitCode.StatusCheckFailed": "28",
  "InstallExitCode.NeedInsidersArch": "29",
  "InstallExitCode.ServerTransferFailed": "31",
  "InstallExitCode.ServerFailedToStart": "32",
  "InstallExitCode.NeedInsidersWindows": "33",
  "InstallExitCode.CreateInstallDirFailed": "34",
  "InstallExitCode.UnsupportedPlatform": "35",
  "InstallExitCode.ServerTerminatedCVE20201416": "36",
  "InstallExitCode.UnpackFailed": "37",
  "InstallUnpackCode.Success": "success",
  "InstallUnpackCode.Error": "error",
  "InstallUnpackCode.MissingFiles": "missingFiles",
  "uuid": "34f5307915bb",
  "startMarker": "34f5307915bb: running",
  "commitId": "ff7a154d5e5e9034914f0466420f0f1407f0c95e",
  "quality": "insider",
  "token": "339ac6b2-672f-4df9-892d-e30bf71c630e",
  "vscodeAgentFolder": "$HOME/.vscode-server-insiders",
  "allowClientDownload": "1",
  "forceClientDownload": "0",
  "cliNameInArchive": "code-insiders",
  "ignoreWgetConfigFlag": " --no-config ",
  "ignoreCurlConfigFlag": " --disable ",
  "wgetTriesSegment": "--tries=1",
  "listenArgs": "--on-host=127.0.0.1 --on-port",
  "printArgs": "echo -e SSH_AUTH_SOCK==$SSH_AUTH_SOCK==\\nDISPLAY==$DISPLAY==",
  "getDownloadServerStartTrigger": "34f5307915bb:trigger_server_download",
  "getDownloadServerEndTrigger": "34f5307915bb:trigger_server_download_end",
  "getProgressDownloading": "34f5307915bb%%1%%",
  "getProgressInstalling": "34f5307915bb%%2%%"
}
[16:04:46.904] Install and start server if needed
[16:04:46.909] askpass server listening on /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-d76761034877c1bd633bf9896c4dbd80f9d06cc3.sock
[16:04:46.909] Spawning local server with {"serverId":2,"ipcHandlePath":"/var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-74505fb2f39b00a129e855246f341f64035d9ec5.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","51183","-o","ConnectTimeout=99999","-p","1234","root@localhost"],"serverDataFolderName":".vscode-server-insiders","dataFilePath":"/Users/chrmarti/Library/Application Support/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-fd5f9128-ff7a154d5e5e9034914f0466420f0f1407f0c95e-0.114.2024082315-es/data.json"}
[16:04:46.909] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.x2Qvkw9gNj/Listeners","SHELL":"/bin/zsh","DISPLAY":"/private/tmp/com.apple.launchd.lD53RDuqJV/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-d76761034877c1bd633bf9896c4dbd80f9d06cc3.sock"}
[16:04:46.910] Spawned 65697
[16:04:46.998] > local-server-2> Running ssh connection command: ssh -v -T -D 51183 -o ConnectTimeout=99999 -p 1234 root@localhost
[16:04:47.000] > local-server-2> Spawned ssh, pid=65708
[16:04:47.008] stderr> OpenSSH_9.7p1, LibreSSL 3.3.6
[16:04:47.037] stderr> debug1: Server host key: ssh-ed25519 SHA256:6tQHoSAUu/x27BCnAFhjqZ3+fmosqlHBpko611gveqs
[16:04:47.229] Got askpass request: {"request":" root@localhost's password: "}
[16:04:47.229] Showing password prompt
[16:04:47.230] Listening for interwindow password on /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-0c1c31e5cb41864216c0d858e3d7aff6a1601723.sock
[16:04:47.230] Writing password prompt to globalState
[16:04:52.030] Password dialog canceled
[16:04:52.030] Interactor signaled cancel
[16:04:52.030] Cleaning up other-window auth server
[16:04:52.086] stderr> Permission denied, please try again.
[16:04:52.188] Got askpass request: {"request":" root@localhost's password: "}
[16:04:52.218] stderr> Permission denied, please try again.
[16:04:52.327] Got askpass request: {"request":" root@localhost's password: "}
[16:04:52.357] stderr> root@localhost: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
[16:04:52.358] > local-server-2> ssh child died, shutting down
[16:04:52.361] Local server exit: 0
[16:04:52.361] Received install output: local-server-2> Running ssh connection command: ssh -v -T -D 51183 -o ConnectTimeout=99999 -p 1234 root@localhost
local-server-2> Spawned ssh, pid=65708
OpenSSH_9.7p1, LibreSSL 3.3.6
debug1: Server host key: ssh-ed25519 SHA256:6tQHoSAUu/x27BCnAFhjqZ3+fmosqlHBpko611gveqs
Permission denied, please try again.
Permission denied, please try again.
root@localhost: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
local-server-2> ssh child died, shutting down

[16:04:52.363] Exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d failed: Error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
[16:04:52.363] Existing exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d errored (Error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).)
[16:04:52.363] Acquiring local install lock: /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-remote-ssh-fd5f9128-install.lock
[16:04:52.363] Initizing new exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d
[16:04:52.363] Error opening exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d: Error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
[16:04:52.366] Looking for existing server data file at /Users/chrmarti/Library/Application Support/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-fd5f9128-ff7a154d5e5e9034914f0466420f0f1407f0c95e-0.114.2024082315-es/data.json
[16:04:52.366] No existing data file
[16:04:52.367] Using commit id "ff7a154d5e5e9034914f0466420f0f1407f0c95e" and quality "insider" for server
[16:04:52.368] Script variables:
 {
  "InstallExitCode.24": "AlreadyInProgress",
  "InstallExitCode.25": "ServerDownloadFailed",
  "InstallExitCode.26": "NoDownloaderAvailable",
  "InstallExitCode.27": "UnsupportedArch",
  "InstallExitCode.28": "StatusCheckFailed",
  "InstallExitCode.29": "NeedInsidersArch",
  "InstallExitCode.30": "NoDownloaderAvailableForStatusCheck",
  "InstallExitCode.31": "ServerTransferFailed",
  "InstallExitCode.32": "ServerFailedToStart",
  "InstallExitCode.33": "NeedInsidersWindows",
  "InstallExitCode.34": "CreateInstallDirFailed",
  "InstallExitCode.35": "UnsupportedPlatform",
  "InstallExitCode.36": "ServerTerminatedCVE20201416",
  "InstallExitCode.37": "UnpackFailed",
  "InstallExitCode.AlreadyInProgress": "24",
  "InstallExitCode.ServerDownloadFailed": "25",
  "InstallExitCode.NoDownloaderAvailable": "26",
  "InstallExitCode.NoDownloaderAvailableForStatusCheck": "30",
  "InstallExitCode.UnsupportedArch": "27",
  "InstallExitCode.StatusCheckFailed": "28",
  "InstallExitCode.NeedInsidersArch": "29",
  "InstallExitCode.ServerTransferFailed": "31",
  "InstallExitCode.ServerFailedToStart": "32",
  "InstallExitCode.NeedInsidersWindows": "33",
  "InstallExitCode.CreateInstallDirFailed": "34",
  "InstallExitCode.UnsupportedPlatform": "35",
  "InstallExitCode.ServerTerminatedCVE20201416": "36",
  "InstallExitCode.UnpackFailed": "37",
  "InstallUnpackCode.Success": "success",
  "InstallUnpackCode.Error": "error",
  "InstallUnpackCode.MissingFiles": "missingFiles",
  "uuid": "8ee1c4ede8df",
  "startMarker": "8ee1c4ede8df: running",
  "commitId": "ff7a154d5e5e9034914f0466420f0f1407f0c95e",
  "quality": "insider",
  "token": "19bb1d7d-cde6-4f22-be45-04525c9c6f45",
  "vscodeAgentFolder": "$HOME/.vscode-server-insiders",
  "allowClientDownload": "1",
  "forceClientDownload": "0",
  "cliNameInArchive": "code-insiders",
  "ignoreWgetConfigFlag": " --no-config ",
  "ignoreCurlConfigFlag": " --disable ",
  "wgetTriesSegment": "--tries=1",
  "listenArgs": "--on-host=127.0.0.1 --on-port",
  "printArgs": "echo -e SSH_AUTH_SOCK==$SSH_AUTH_SOCK==\\nDISPLAY==$DISPLAY==",
  "getDownloadServerStartTrigger": "8ee1c4ede8df:trigger_server_download",
  "getDownloadServerEndTrigger": "8ee1c4ede8df:trigger_server_download_end",
  "getProgressDownloading": "8ee1c4ede8df%%1%%",
  "getProgressInstalling": "8ee1c4ede8df%%2%%"
}
[16:04:52.369] Install and start server if needed
[16:04:52.372] askpass server listening on /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-045a5f50ced2369748a17d1edc427440b5bbcdde.sock
[16:04:52.372] Spawning local server with {"serverId":3,"ipcHandlePath":"/var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-b9f584c47be370119c02fd88b8c05912319f2a9a.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","51183","-o","ConnectTimeout=99999","-p","1234","root@localhost"],"serverDataFolderName":".vscode-server-insiders","dataFilePath":"/Users/chrmarti/Library/Application Support/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-fd5f9128-ff7a154d5e5e9034914f0466420f0f1407f0c95e-0.114.2024082315-es/data.json"}
[16:04:52.373] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.x2Qvkw9gNj/Listeners","SHELL":"/bin/zsh","DISPLAY":"/private/tmp/com.apple.launchd.lD53RDuqJV/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-045a5f50ced2369748a17d1edc427440b5bbcdde.sock"}
[16:04:52.373] Spawned 65837
[16:04:52.452] > local-server-3> Running ssh connection command: ssh -v -T -D 51183 -o ConnectTimeout=99999 -p 1234 root@localhost
[16:04:52.455] > local-server-3> Spawned ssh, pid=65848
[16:04:52.460] stderr> OpenSSH_9.7p1, LibreSSL 3.3.6
[16:04:52.487] stderr> debug1: Server host key: ssh-ed25519 SHA256:6tQHoSAUu/x27BCnAFhjqZ3+fmosqlHBpko611gveqs
[16:04:52.608] Got askpass request: {"request":" root@localhost's password: "}
[16:04:52.609] Showing password prompt
[16:04:52.609] Listening for interwindow password on /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-4b54394781a2e8ba628be8877b5eb03eb67a49d6.sock
[16:04:52.609] Writing password prompt to globalState
[16:04:55.765] Got password response
[16:04:55.765] Interactor gave response: ******
[16:04:55.766] Cleaning up other-window auth server
[16:04:55.875] stderr> Authenticated to localhost ([127.0.0.1]:1234) using "password".
[16:04:55.923] > Last failed login: Tue Aug 27 14:04:52 UTC 2024 from 172.17.0.1 on ssh:notty
> There were 16 failed login attempts since the last successful login.
[16:04:55.935] > ready: 8ee1c4ede8df
[16:04:55.937] > Linux 6.6.32-linuxkit #1 SMP Thu Jun 13 14:13:01 UTC 2024
[16:04:55.937] Platform: linux
[16:04:55.938] > /bin/bash
[16:04:55.938] Shell: bash
[16:04:55.938] Creating bash subshell inside "bash"
[16:04:55.940] > bash version:  5.2.26(1)-release
[16:04:55.943] > 8ee1c4ede8df: running
[16:04:55.950] > Found existing installation at /root/.vscode-server-insiders...
> Starting VS Code CLI...
> printenv:
[16:04:55.951] >     SHELL=/bin/bash
>     HISTCONTROL=ignoredups
>     HOSTNAME=5435449deb49
>     HISTSIZE=1000
>     DISTTAG=f40container
>     PWD=/root
>     LOGNAME=root
>     FBR=f40
>     MOTD_SHOWN=pam
>     HOME=/root
>     LANG=C.UTF-8
>     FGC=f40
>     SSH_CONNECTION=172.17.0.1 56610 172.17.0.2 1234
>     USER=root
>     SHLVL=2
>     SSH_CLIENT=172.17.0.1 56610 1234
>     PATH=/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>     MAIL=/var/spool/mail/root
>     _=/usr/bin/printenv
[16:04:55.952] > Removing old logfile at /root/.vscode-server-insiders/.cli.ff7a154d5e5e9034914f0466420f0f1407f0c95e.log
[16:04:55.953] > Spawned remote CLI: 1570
[16:04:55.955] > Exec server process not found
[16:04:55.955] stderr> main: line 344: ps: command not found
[16:04:55.957] > 8ee1c4ede8df: start
> SSH_AUTH_SOCK====
> DISPLAY====
> listeningOn====
> osReleaseId==fedora==
> arch==aarch64==
> vscodeArch==arm64==
> bitness==64==
> tmpDir==/tmp==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> serverStartTime==4==
> execServerToken==11aa1a1a-aaa1-1a11-aa11-11111a1a1a11==
> 8ee1c4ede8df: end
[16:04:55.957] Received install output: 
SSH_AUTH_SOCK====
DISPLAY====
listeningOn====
osReleaseId==fedora==
arch==aarch64==
vscodeArch==arm64==
bitness==64==
tmpDir==/tmp==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==4==
execServerToken==11aa1a1a-aaa1-1a11-aa11-11111a1a1a11==

[16:04:55.958] Failed to parse remote port from server output
[16:04:55.958] Terminating local server
[16:04:55.958] Exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d failed: Error
[16:04:55.958] Error opening exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d: Error
[16:04:55.961] Local server exit: 15
bttbmeg0

bttbmeg01#

在Windows上也可以运行(因为这是我的任务):

0yg35tkg

0yg35tkg2#

我已经在版本v0.114.2024082715 (pre-release)+的扩展中删除了所有ps示例。
升级到此版本并尝试重现步骤后,我遇到了与#226753相同的scp问题,但没有看到ps问题。

tpgth1q7

tpgth1q73#

v0.114.2024082715在我测试时尚未发布。现在在macOS上可以正常工作。目前我的开发箱遇到了一些问题,当它回来时可以在那里进行测试。

相关问题