[英]Access Ipython Notebook Running on Remote Server
在远程linux机器上安装了Anaconda Python。
在本地Windows上使用腻子登录到远程linux计算机以远程启动Ipython Notebook。 它从端口8888开始。
remote_user @ remote_host $ ipython笔记本--no-browser --port = 8888
现在,我需要在本地浏览器上访问此笔记本。 尝试过做ssh隧道。
C:\\ Users \\ Windows用户> ssh -N -f -L localhost:8888:localhost:8888 remote_user @ remote_host
ssh:连接到主机remote_host端口22:错误的文件号
但是无法正确处理。 得到以上错误
注意:用户windowsUser在remote_host(linux)上不存在。 远程用户帐户是remote_user。
我要去哪里错了? 请帮助
看来您有错字。 在ssh命令中,您不应两次拥有“ localhost”。
更正的命令是:
ssh -N -f -L 8888:localhost:8888 remote_user@remote_host
因为该命令的语法为:
ssh -L <Local Port>:<Local Machine>:<Target Port> <Target Machine>
(请参阅http://www.slashroot.in/ssh-port-forwarding-linux-configuration-and-examples )
此外,您可以改为修改ssh配置文件(在~/.ssh/config
或/etc/ssh_config
)以包括端口转发:
Host remote_host
Hostname PUT_REMOTE_IP_HERE
Port 22
User remote_user
LocalForward 8888 localhost:8888
我认为窗口没有ssh cmd,
如果本地是标准ssh客户端使用
C:\\Users\\windowsUser> ssh -N -f -L 8888:localhost:8888 remote_user@remote_host
ipython notebook --ip=remote_host_ip
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.