输入时的 MAC 已损坏。ssh_dispatch_run_fatal:消息身份验证代码不正确无法在远程服务器上ssh jupyter笔记本

Him*_*dar 5 windows ssh networking remote-access server

我试图连接到在远程服务器上运行的 jupyter 笔记本,以便我可以在本地 Windows 计算机上访问它。

这些是我遵循的步骤。

在我的远程服务器上:

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

然后在我本地的 Windows 机器上

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

但我收到错误

C:\>ssh -N -f -L localhost:8888:localhost:8889 *******@**********.de.bosch.com
Corrupted MAC on input.
ssh_dispatch_run_fatal: Connection to 10.82.134.38 port 22: message authentication code incorrect
Run Code Online (Sandbox Code Playgroud)

然而,当我尝试在 Microsoft Ubuntu WSL 上做同样的事情时。我能够成功连接,然后我可以通过输入jupyter notebookcmd来连接。

ssh -N -f -L localhost:8888:localhost:8889 *****@*******.de.bosch.com
The authenticity of host '*****@*******.de.bosch.com (10.82.134.38)' can't be established.
ECDSA key fingerprint is SHA256:EMneQnZfl3uyH0xeH+LPnkib4v7lF24qdx5C1QnXkxI.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '*******.de.bosch.com' (ECDSA) to the list of known hosts.
Password: ******
Run Code Online (Sandbox Code Playgroud)

小智 13

ssh -L localhost:8888:localhost:8889 -m hmac-sha2-256 *******@**********.de.bosch.com
Run Code Online (Sandbox Code Playgroud)

如果没有得到,执行:

ssh -Q mac
Run Code Online (Sandbox Code Playgroud)

并替换hmac-sha2-256为每一个。