我正在尝试在远程机器上运行 jupyter 笔记本user@remote
并从本地机器使用它。我做到了
local@host $ ssh user@remote
password for user@remote: *******
user@remote $ ipython notebook --no-browser --port=8889
然后在我的本地机器上我做
local@host $ ssh -N -L localhost:8888:localhost:8889 user@remote
password for user@remote: *******
localhost:8888
当我在浏览器中打开这个( )时,它说
local@host $ channel 2: open failed: connect failed: Connection refused
答案1
尝试更改您的命令
localhost:8888:localhost:8889
到
8888:localhost:8889
。