0060. shell命令--chpasswd

目录

60. shell命令--chpasswd

功能说明

语法格式

选项说明

实践操作

注意事项


60. shell命令--chpasswd

功能说明

        chpasswd 命令在 Linux 系统中用于批量更新用户的密码。这个命令非常有用,特别是在批量创建用户并需要为这些用户设置初始密码时,或者是在需要快速更新多个用户密码的场景中。chpasswd 读取标准输入中的用户名和密码对(格式为 用户名:密码),然后更新这些用户的密码。

        chpasswd 命令是批量更新用户口令的工具,是把一个文件内容重新定向添加到 /etc/shadow 中。 chpasswd 命令从系统的标准输入读入用户的名称和口令,并利用这些信息来更新系统上已存在的用户的口令。

        但是,由于 chpasswd 主要从标准输入(stdin)读取用户名和密码对,因此它通常与 echo 或其他命令的管道(pipe)一起使用,或者通过重定向(redirection)从文件中读取。

语法格式

chpasswd [<选项>]

SYNOPSIS
       chpasswd [options]

选项说明

-e:输入的密码是加密后的密文;
-h:显示帮助信息并退出;
-m:当被支持的密码未被加密时,使用MD5加密代替DES加密。

实践操作

0. 环境准备
seq 6 |sed -r 's#(.*)#useradd usertest-\1#g' |bash  #批量创建5个普通用户
tail -6 /etc/passwd

1. 直接修改用户 usertest-1 的密码为 usertest-1
tail -6 /etc/shadow
echo usertest-1:usertest-1 |chpasswd
tail -6 /etc/shadow

2. 命令行直接输入并执行
tail -6 /etc/shadow
chpasswd    #在新的一行中输入用户名和密码,按Ctrl+d结束输入,若中途输入错了,按住Ctrl键在按退格就行了
#usertest-2:usertest-2
#usertest-3:usertest-3
tail -6 /etc/shadow

3. 从写好的文件中执行
echo -e "usertest-4:usertest-4\nusertest-5:usertest-5" >passwd.txt
cat passwd.txt
tail -3 /etc/shadow
chpasswd <passwd.txt
tail -3 /etc/shadow

4. 让普通用户使用 chpasswd
# 默认普通用户是没有chpasswd的权限,但是可以通过修改命令文件权限来修改
ll /usr/sbin/chpasswd
su - usertest-1
whoami
echo usertest-6:usertest-6 |chpasswd
logout
chmod 4755 /usr/sbin/chpasswd
ll /usr/sbin/chpasswd
su - usertest-1
echo usertest-6:usertest-6 |chpasswd 
tail -1 /etc/shadow
logout
tail -1 /etc/shadow

注意事项

  • 权限问题:更新用户密码通常需要超级用户权限,因此可能需要使用 sudo。
  • 安全性:直接在命令行中使用 echo 或文件来传递密码可能存在安全风险,因为这些命令和文件可能会保留在命令历史或系统中。确保处理密码的方式符合你的安全政策。
  • 加密:chpasswd 命令处理的密码不是加密的,而是直接以明文形式处理。但是,一旦密码被设置,它们就会在系统中以加密形式存储。
  • 密码策略:确保你设置的密码符合系统的密码策略要求,比如长度、复杂度等。
  • 使用临时文件:将用户名和密码对写入一个临时文件,并确保该文件具有适当的权限(如仅所有者可读写),然后立即使用 chpasswd 读取该文件,并在完成后删除该文件。
  • 避免命令历史记录:在 Bash 中,可以通过在命令前添加空格来防止该命令被记录到历史中(尽管这不是完全安全的,因为其他工具可能仍然捕获到命令)。
  • 加密存储:虽然 chpasswd 本身不处理加密的密码,但可以在将密码写入文件之前使用加密工具(如 openssl)对密码进行加密,然后在脚本中解密并使用。然而,这种方法增加了复杂性,并且需要确保解密密钥的安全。
(base) helenenenen@shpc-55355-instance-KDjoNPOz:~$ docker logs rstudio_prod | grep -i 'error' s6-chown: fatal: unable to chown /var/run/s6/etc/cont-init.d/01_set_env: Operation not permitted s6-chown: fatal: unable to chown /var/run/s6/etc/cont-init.d/02_userconf: Operation not permitted s6-chmod: fatal: unable to change mode of /var/run/s6/etc/cont-init.d/01_set_env: Operation not permitted s6-chmod: fatal: unable to change mode of /var/run/s6/etc/cont-init.d/02_userconf: Operation not permitted s6-chown: fatal: unable to chown /var/run/s6/etc/services.d/rstudio/run: Operation not permitted s6-chmod: fatal: unable to change mode of /var/run/s6/etc/services.d/rstudio/run: Operation not permitted s6-chown: fatal: unable to chown /var/run/s6/etc/services.d/rstudio/finish: Operation not permitted s6-chmod: fatal: unable to change mode of /var/run/s6/etc/services.d/rstudio/finish: Operation not permitted sed: couldn't open temporary file /usr/local/lib/R/etc/sedljWUhS: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedW8TIZO: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedRg1Rd9: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedHC4nuE: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedxBFmbd: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedqMaDNd: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedr2tg88: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedenVx1m: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedGFtQKq: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sed7n0mh5: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedegS8Cj: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sed0iO70e: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedXQ0IHO: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedHzIn5w: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sed3yUMKq: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied usermod: group '1002' does not exist /var/run/s6/etc/cont-init.d/02_userconf: line 134: /etc/rstudio/rserver.conf: Permission denied userdel: Permission denied. userdel: cannot lock /etc/passwd; try again later. chpasswd: (user root) pam_chauthtok() failed, error: Authentication token manipulation error chpasswd: (line 1, user root) password not changed s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-chown: fatal: unable to chown /var/run/s6/etc/cont-init.d/01_set_env: Operation not permitted s6-chown: fatal: unable to chown /var/run/s6/etc/cont-init.d/02_userconf: Operation not permitted s6-chmod: fatal: unable to change mode of /var/run/s6/etc/cont-init.d/02_userconf: Operation not permitted s6-chmod: fatal: unable to change mode of /var/run/s6/etc/cont-init.d/01_set_env: Operation not permitted s6-chown: fatal: unable to chown /var/run/s6/etc/services.d/rstudio/run: Operation not permitted s6-chmod: fatal: unable to change mode of /var/run/s6/etc/services.d/rstudio/run: Operation not permitted s6-chown: fatal: unable to chown /var/run/s6/etc/services.d/rstudio/finish: Operation not permitted s6-chmod: fatal: unable to change mode of /var/run/s6/etc/services.d/rstudio/finish: Operation not permitted sed: couldn't open temporary file /usr/local/lib/R/etc/sedKhgHnk: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedKxIxBr: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sed4imZbX: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedaDX0X3: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedxLo5Rk: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedKe66RS: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedeJlSQ6: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedd54Kqt: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sed6tFOG9: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedSrS6dx: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedDZfBHA: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedTTkGM6: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedGP7As9: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedjzOPsz: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied sed: couldn't open temporary file /usr/local/lib/R/etc/sedMDVVYf: Permission denied /var/run/s6/etc/cont-init.d/01_set_env: line 9: /usr/local/lib/R/etc/Renviron.site: Permission denied usermod: group '1002' does not exist /var/run/s6/etc/cont-init.d/02_userconf: line 134: /etc/rstudio/rserver.conf: Permission denied userdel: Permission denied. userdel: cannot lock /etc/passwd; try again later. chpasswd: (user root) pam_chauthtok() failed, error: Authentication token manipulation error chpasswd: (line 1, user root) password not changed s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied s6-supervise rstudio: warning: unable to spawn ./run - waiting 10 seconds s6-supervise (child): fatal: unable to exec run: Permission denied (base) helenenenen@shpc-55355-instance-KDjoNPOz:~$
08-31
[20:43:02.961] Log Level: 2 [20:43:02.986] SSH Resolver called for "ssh-remote+root", attempt 1 [20:43:02.992] remote.SSH.useLocalServer = false [20:43:02.993] remote.SSH.useExecServer = true [20:43:02.993] remote.SSH.bindHost = {} [20:43:02.993] remote.SSH.showLoginTerminal = false [20:43:02.993] remote.SSH.remotePlatform = {} [20:43:02.993] remote.SSH.path = [20:43:02.994] remote.SSH.configFile = [20:43:02.994] remote.SSH.useFlock = true [20:43:02.994] remote.SSH.lockfilesInTmp = false [20:43:02.997] remote.SSH.localServerDownload = auto [20:43:02.997] remote.SSH.remoteServerListenOnSocket = false [20:43:02.998] remote.SSH.defaultExtensions = [] [20:43:02.998] remote.SSH.defaultExtensionsIfInstalledLocally = [] [20:43:02.998] remote.SSH.loglevel = 2 [20:43:02.998] remote.SSH.enableDynamicForwarding = true [20:43:02.998] remote.SSH.enableRemoteCommand = false [20:43:02.998] remote.SSH.serverPickPortsFromRange = {} [20:43:02.998] remote.SSH.serverInstallPath = {} [20:43:02.998] remote.SSH.permitPtyAllocation = false [20:43:02.998] remote.SSH.preferredLocalPortRange = undefined [20:43:02.999] remote.SSH.useCurlAndWgetConfigurationFiles = false [20:43:02.999] remote.SSH.experimental.chat = true [20:43:02.999] remote.SSH.experimental.enhancedSessionLogs = true [20:43:02.999] remote.SSH.httpProxy = {"*":""} [20:43:02.999] remote.SSH.httpsProxy = {"*":""} [20:43:03.009] VS Code version: 1.101.1 [20:43:03.010] Remote-SSH version: remote-ssh@0.120.0 [20:43:03.010] win32 x64 [20:43:03.015] SSH Resolver called for host: root [20:43:03.015] Setting up SSH remote "root" [20:43:03.025] Using commit id "18e3a1ec544e6907be1e944a94c496e302073435" and quality "stable" for server [20:43:03.025] Extensions to install: [20:43:03.032] Install and start server if needed [20:43:06.034] Checking ssh with "C:\Program Files (x86)\Common Files\Oracle\Java\java8path\ssh.exe -V" [20:43:06.037] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Oracle\Java\java8path\ssh.exe ENOENT [20:43:06.037] Checking ssh with "C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe -V" [20:43:06.039] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe ENOENT [20:43:06.039] Checking ssh with "C:\Windows\system32\ssh.exe -V" [20:43:06.040] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT [20:43:06.040] Checking ssh with "C:\Windows\ssh.exe -V" [20:43:06.041] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT [20:43:06.042] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V" [20:43:06.042] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT [20:43:06.043] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V" [20:43:06.043] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [20:43:06.043] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V" [20:43:06.071] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2 [20:43:06.076] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 51109 root sh [20:43:06.078] Generated SSH command: 'type "C:\Users\chen\AppData\Local\Temp\vscode-linux-multi-line-command-root-258649359.sh" | "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 51109 root sh' [20:43:06.078] Using connect timeout of 17 seconds [20:43:06.079] Terminal shell path: C:\Windows\System32\cmd.exe [20:43:09.884] > root@192.168.124.6's password: [20:43:09.884] Got some output, clearing connection timeout [20:43:09.885] Showing password prompt [20:43:17.794] Got password response [20:43:17.794] "install" wrote data to terminal: "******" [20:43:17.847] > [20:43:18.372] > d55f9866d272: running > Script executing under PID: 18331 [20:43:18.448] > Found existing installation at /root/.vscode-server... > Starting VS Code CLI... > Removing old logfile at /root/.vscode-server/.cli.18e3a1ec544e6907be1e944a94c496e302073435.log > Spawned remote CLI: 18357 > Waiting for server log... [20:43:18.583] > Waiting for server log... > Waiting for server log... > Waiting for server log... [20:43:18.624] > Exec server process not found > sh: 418: kill: No such process [20:43:18.631] > [2023-03-02 21:21:50] error This machine does not meet Visual Studio Code Server's prerequisites, expected either... > - find GLIBC >= v2.28.0 (but found v2.27.0 instead) for GNU environments > - find /lib/ld-musl-aarch64.so.1, which is required to run the Visual Studio Code Server in musl environments > d55f9866d272: start > exitCode==207== > listeningOn==== > osReleaseId==ubuntu== > arch==aarch64== > vscodeArch==arm64== > bitness==64== > tmpDir==/run/user/0== > platform==linux== > unpackResult==== [20:43:18.640] > > didLocalDownload==0== > downloadTime==== > installTime==== > serverStartTime==== > execServerToken==a11aaa11-1a1a-1a11-111a-11aa111111a1== > platformDownloadPath==cli-alpine-arm64== > SSH_AUTH_SOCK==== > DISPLAY==== > d55f9866d272: end [20:43:18.640] Received install output: exitCode==207== listeningOn==== osReleaseId==ubuntu== arch==aarch64== vscodeArch==arm64== bitness==64== tmpDir==/run/user/0== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== serverStartTime==== execServerToken==a11aaa11-1a1a-1a11-111a-11aa111111a1== platformDownloadPath==cli-alpine-arm64== SSH_AUTH_SOCK==== DISPLAY==== [20:43:18.641] Resolver error: Error: 远程主机不满足运行VS Code服务器的先决条件 at y.ServerInstallError (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:744694) at p (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:739113) at t.handleInstallOutput (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:740589) at t.tryInstall (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:865534) at async c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:824246 at async t.withShowDetailsEvent (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:827501) at async A (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:820760) at async t.resolve (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:824898) at async c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:1113660 [20:43:18.648] ------ [20:43:18.649] ---------- [Session Summary] ----------- [20:43:18.649] [LinuxPrereqs]: 远程主机可能不符合 glibc 和 libstdc++ VS Code 服务器的先决条件 (远程主机不满足运行VS Code服务器的先决条件) [20:43:18.649] ---------------------------------------- [20:43:18.858] > [20:43:19.386] Opening exec server for ssh-remote+root [20:43:19.439] Initizing new exec server for ssh-remote+root [20:43:19.439] Using commit id "18e3a1ec544e6907be1e944a94c496e302073435" and quality "stable" for server [20:43:19.439] Extensions to install: [20:43:19.462] Opening exec server for ssh-remote+root [20:43:19.464] Install and start server if needed [20:43:19.904] "install" terminal command done [20:43:19.905] Install terminal quit with output: [20:43:21.556] getPlatformForHost was canceled [20:43:21.556] Exec server for ssh-remote+root failed: Error: 已取消连接 [20:43:21.556] Existing exec server for ssh-remote+root errored (Error: 已取消连接) [20:43:21.556] Initizing new exec server for ssh-remote+root [20:43:21.557] Error opening exec server for ssh-remote+root: Error: 已取消连接 [20:43:21.557] ---------- [Session Summary] ----------- [20:43:21.557] [LinuxPrereqs]: 远程主机可能不符合 glibc 和 libstdc++ VS Code 服务器的先决条件 (远程主机不满足运行VS Code服务器的先决条件) [20:43:21.557] ---------------------------------------- [20:43:21.557] Using commit id "18e3a1ec544e6907be1e944a94c496e302073435" and quality "stable" for server [20:43:21.557] Extensions to install: [20:43:21.562] Install and start server if needed
06-21
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

MineGi

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值