CreateProcessW failed error:2 ssh_askpass: posix_spawn: No such file or directory 主机密钥验证失败,远程服务器上的 jupyter notebook

Him*_*dar 8 python localhost remote-server jupyter jupyter-notebook

所以我按照教程连接到我的 jupyter notebook,它在我的远程服务器上运行,这样我就可以在我的本地 Windows 机器上访问它。

这些是我遵循的步骤。

在我的远程服务器上:

jupyter notebook --no-browser --port=8889
Run Code Online (Sandbox Code Playgroud)

然后在我的本地机器上

ssh -N -f -L localhost:8888:localhost:8889 *******@**********.de.bosch.com
Run Code Online (Sandbox Code Playgroud)

但我收到一个错误

CreateProcessW failed error:2
ssh_askpass: posix_spawn: No such file or directory
Host key verification failed.
Run Code Online (Sandbox Code Playgroud)

我该如何解决?或者有没有其他方法可以实现相同的目标?

Man*_*red 5

如果因为要在 Windows 10 中使用 VcXsrc 或其他 X-Server 而需要设置 DISPLAY 变量,则解决方法是将要连接的主机添加到 known_hosts 文件。这可以通过调用来完成

ssh-keyscan -t rsa host.example.com | Out-File ~/.ssh/known_hosts -Append -Encoding ASCII;
Run Code Online (Sandbox Code Playgroud)

  • 请使用powershell。“Out-File”是一个 powershell 命令,可确保使用 ASCII 编码附加密钥。如果您使用>>添加密钥,可能会使用其他编码,这将破坏known_hosts文件。 (2认同)