使用ssh搭建jupyter notebook服务器
2018-01-22 23:47
851 查看
首先配置好linux服务器端的openssh
设置jupyter
生成密钥:ipython from IPython.lib import passwd passwd()
输入密码
复制“sha1………”
自行创建一个配置文件,然后在运行 Jupyter notebook 的时候动态加载配置信息
在~/.jupyter/下创建jupyter_red_config.py文件
内容如下:
c.NotebookApp.ip = 'localhost' # 指定 c.NotebookApp.open_browser = False # 关闭自动打开浏览器 c.NotebookApp.port = 8888 # 端口随意指定 c.NotebookApp.password = u'sha1:*******' # 复制前一步生成的密钥
参考:https://www.jianshu.com/p/a9de7a089834
在linux服务器端开启ssh:
service sshd start #stop/restart
Mac:
ssh userName@10.170.*.* jupyter notebook --config=jupyter_red_config.py
看一下打开的终端是哪个端口(如:8892)
另开一个终端:
ssh -L8008:localhost:8892 userName@10.170.*.*
浏览器打开localhost:8008
相关文章推荐
- 通过SSH远程使用jupyter notebook
- 利用Anaconda搭建TensorFlow环境并在Jupyter Notebook使用
- 使用pelican搭建一个Jupyter Notebook数据科学博客
- Jupyter notebook 搭建和使用
- Mac下Jupyter(即IPython-notebook)的搭建及使用(更建议安装Anaconda环境直接自带jupyter notebook)
- 远程使用内网服务器的tensorboard和jupyter notebook
- 在服务器搭建Jupyter notebook
- 搭建 Jupyter Notebook 服务器
- Docker: 使用jupyter notebook基础镜像搭建自己的 pytorch 开发环境
- Jupyter Notebook 使用小结
- jupyter notebook即原来的Ipython notebook的使用方法
- Jupyter Notebook使用笔记(一)
- 如何在Jupyter Notebook中使用Tensorflow
- Jupyter notebook安装与使用
- Jupyter Notebook使用笔记(二)
- VPS搭建Tensorflow Jupyter Notebook 教程
- Jupyter notebook使用记录
- 在windows下使用jupyter notebook
- Jupyter Notebook的使用
- Ubuntu 16.04 LTS 配置 Jupyter notebook 为服务器