• Как исправить ошибку при подключении на удаленный сервер через SSH?

    @load-net
    Тоже ошибка

    [08:37:12.641] Log Level: 2
    [08:37:12.658] SSH Resolver called for "ssh-remote+10.1.1.205", attempt 1
    [08:37:12.660] "remote.SSH.useLocalServer": false
    [08:37:12.665] "remote.SSH.useExecServer": false
    [08:37:12.666] "remote.SSH.showLoginTerminal": false
    [08:37:12.670] "remote.SSH.remotePlatform": {"10.1.1.150":"linux","10.1.1.202":"linux","10.1.1.153":"linux","10.1.1.154":"linux"}
    [08:37:12.670] "remote.SSH.path": undefined
    [08:37:12.670] "remote.SSH.configFile": undefined
    [08:37:12.671] "remote.SSH.useFlock": true
    [08:37:12.671] "remote.SSH.lockfilesInTmp": false
    [08:37:12.671] "remote.SSH.localServerDownload": auto
    [08:37:12.671] "remote.SSH.remoteServerListenOnSocket": false
    [08:37:12.671] "remote.SSH.showLoginTerminal": false
    [08:37:12.674] "remote.SSH.defaultExtensions": []
    [08:37:12.674] "remote.SSH.loglevel": 2
    [08:37:12.674] "remote.SSH.enableDynamicForwarding": true
    [08:37:12.674] "remote.SSH.enableRemoteCommand": false
    [08:37:12.675] "remote.SSH.serverPickPortsFromRange": {}
    [08:37:12.675] "remote.SSH.serverInstallPath": {}
    [08:37:12.684] VS Code version: 1.85.0
    [08:37:12.684] Remote-SSH version: remote-ssh@0.107.1
    [08:37:12.684] win32 x64
    [08:37:12.685] SSH Resolver called for host: 10.1.1.205
    [08:37:12.685] Setting up SSH remote "10.1.1.205"
    [08:37:12.691] Using commit id "af28b32d7e553898b2a91af498b1fb666fdebe0c" and quality "stable" for server
    [08:37:12.700] Install and start server if needed
    [08:37:14.234] Checking ssh with "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\ssh.exe -V"
    [08:37:14.238] Got error from ssh: spawn C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\ssh.exe ENOENT
    [08:37:14.238] Checking ssh with "C:\Windows\system32\ssh.exe -V"
    [08:37:14.240] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
    [08:37:14.240] Checking ssh with "C:\Windows\ssh.exe -V"
    [08:37:14.242] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
    [08:37:14.242] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
    [08:37:14.245] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
    [08:37:14.246] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
    [08:37:14.248] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
    [08:37:14.248] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
    [08:37:14.537] > OpenSSH_for_Windows_8.1p1,
    [08:37:14.537] > LibreSSL 3.0.2

    [08:37:14.558] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 63792 "10.1.1.205" bash
    [08:37:14.569] Terminal shell path: C:\Windows\System32\cmd.exe
    [08:37:15.314] > ]0;C:\Windows\System32\cmd.exe
    [08:37:15.315] Got some output, clearing connection timeout
    [08:37:15.532] > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    [08:37:15.555] > @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
    > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    > IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    > Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    > It is also possible that a host key has just been changed.
    > The fingerprint for the ECDSA key sent by the remote host is
    > SHA256:O8MVBL5hAiRJo+MRLbfau/oNQ0SQfz0ou+GF1J7JVBE.
    > Please contact your system administrator.
    > Add correct host key in C:\\Users\\umpd/.ssh/known_hosts to get rid of this mess
    > age.
    > Offending ECDSA key in C:\\Users\\umpd/.ssh/known_hosts:1
    > ECDSA host key for 10.1.1.205 has changed and you have requested strict checking
    > .
    > Host key verification failed.
    > Попытка записи в несуществующий канал.
    >
    [08:37:16.820] "install" terminal command done
    [08:37:16.821] Install terminal quit with output: Попытка записи в несуществующий канал.
    [08:37:16.821] Received install output: Попытка записи в несуществующий канал.
    [08:37:16.822] Failed to parse remote port from server output
    [08:37:16.823] Resolver error: Error:
    at g.Create (c:\Users\umpd\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:642703)
    at t.handleInstallOutput (c:\Users\umpd\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:640069)
    at t.tryInstall (c:\Users\umpd\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:761983)
    at async c:\Users\umpd\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:722522
    at async t.withShowDetailsEvent (c:\Users\umpd\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:725828)
    at async I (c:\Users\umpd\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:719493)
    at async t.resolve (c:\Users\umpd\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:723199)
    at async c:\Users\umpd\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:907003
    [08:37:16.871] ------

    ******************************************************************************************************************************************
    А вот при нормальном запуске на соседний сервер
    -----------------------------------------------------------------------------
    ee227fae19c4: running
    Acquiring lock on /root/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/vscode-remote-lock.root.af28b32d7e553898b2a91af498b1fb666fdebe0c
    Found existing installation at /root/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c...
    Checking /root/.vscode-server/.af28b32d7e553898b2a91af498b1fb666fdebe0c.log and
    /root/.vscode-server/.af28b32d7e553898b2a91af498b1fb666fdebe0c.pid for a running server
    Looking for server with pid: 9742
    Running ssh connection command... /root/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/bin/code-server --start-server --host=127.0.0.1 --accept-server-license-terms --enable-remote-auto-shutdown --port=0 --telemetry-level all
    &> "/root/.vscode-server/.af28b32d7e553898b2a91af498b1fb666fdebe0c.log" < /dev/null
    printenv:
    XDG_SESSION_ID=7461
    SHELL=/bin/bash
    SSH_CLIENT=10.20.7.70 49543 22
    USER=root
    VSCODE_AGENT_FOLDER=/root/.vscode-server
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
    MAIL=/var/mail/root
    PWD=/root
    LANG=ru_RU.UTF-8
    HOME=/root
    SHLVL=2
    LOGNAME=root
    SSH_CONNECTION=10.20.7.70 49543 10.1.1.154 22
    LESSOPEN=||/usr/bin/lesspipe.sh %s
    XDG_RUNTIME_DIR=/run/user/0
    _=/usr/bin/printenv
    Removing old logfile at /root/.vscode-server/.af28b32d7e553898b2a91af498b1fb666fdebe0c.log
    Spawned remote server: 5635
    Waiting for server log...
    Waiting for server log...
    Waiting for server log...
    Waiting for server log...
    Waiting for server log...

    *
    * Visual Studio Code Server
    *
    * By using the software, you agree to
    * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
    * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
    *

    ee227fae19c4: start
    SSH_AUTH_SOCK====
    DISPLAY====
    webUiAccessToken====
    listeningOn==46014==
    osReleaseId==centos==
    arch==x86_64==
    vscodeArch==x64==
    bitness==64==
    tmpDir==/run/user/0==
    platform==linux==
    unpackResult====
    didLocalDownload==0==
    downloadTime====
    installTime====
    extInstallTime====
    serverStartTime==409==
    connectionToken==05037be6-ac91-417e-a3fd-98cdaccdb40d==
    ee227fae19c4: end
    -----------------------------------------------------------------------------
    Ответ написан
    Комментировать