通过SSH隧道从远程位置连接ipython-notebook [英] Connect ipython-notebook via SSH tunnel from a remote location

查看:95
本文介绍了通过SSH隧道从远程位置连接ipython-notebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过ssh隧道从远程位置在macbook上打开ipython-notebook(在服务器上运行),但没有收到数据. 这是SSH隧道的命令

I'm trying to open an ipython-notebook (which is running on a server) on a macbook from a remote location through an ssh tunnel but no data received. This is the command for the SSH tunnel

ssh -L 5558:localhost:5558 -N -t -x  user@remote-host

这是我用来从服务器午餐笔记本的命令

and this is the command I used to lunch the notebook form the server

ipython notebook --pylab=inline --port=5558 --ip=* --no-browser --notebook-dir notebooks

比起尝试用此remote-host:5558在新选项卡上打开它,但没有收到数据. 预先感谢!

Than I tried to open it on a new tab with this remote-host:5558 but no data received. Thanks in advance!

推荐答案

指令-L AAAA:somehost:BBBB将使SSH监听 localhost (运行ssh命令的计算机)上的端口AAAA,并且通过SSH会话将与该端口的任何连接转发到主机somehost端口BBBB.因此,您需要在运行ssh命令的计算机上的浏览器中打开http://localhost:5558/.

The directive -L AAAA:somehost:BBBB will cause SSH to listen on port AAAA on localhost (the machine the ssh command is run on) and forward any connection to that port, over the SSH session, to the host somehost port BBBB. So, you need to open http://localhost:5558/ in the browser on the machine you run the ssh command on.

这篇关于通过SSH隧道从远程位置连接ipython-notebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆