服务器配置 jupyter lab,并在本地浏览器免密登陆

一、背景

快速搭建一个jupyter lab 不用每次用ssh登录输入密码

二、步骤

方法1、临时在服务器启动 jupyter lab,并在本地浏览器免密登陆

两句命令解决

复制代码
pip install jupyterlab

nohup jupyter lab --ServerApp.ip="*" --ServerApp.password="" --ServerApp.token="" --no-browser --allow-root --port 8888 >> jupyter_lab.txt 2>&1 &

方法2: 永久修改jupyter lab配置文件,在服务器启动 jupyter lab,并在本地浏览器免密登陆

复制代码
jupyter server --generate-config # or jupyter lab --generate-config
vim jupyter_server_config.py # vim jupyter_lab_config.py 

配置文件修改内容

复制代码
c.ServerApp.allow_root=True
c.ServerApp.ip='*'
c.ServerApp.open_browser=False
c.ServerApp.password=''
c.ServerApp.token=''
相关推荐
HIT_Weston1 小时前
27、【Ubuntu】【远程开发】内网穿透:CA 签名
linux·运维·ubuntu
猫小呆2 小时前
Weaviate服务器部署笔记
服务器·weaviate
M158227690552 小时前
工业互联利器!EtherNet/IP 转 ModbusTCP 网关,让跨协议通信零门槛
服务器·网络·tcp/ip
阿巴~阿巴~2 小时前
基于UDP协议的英汉翻译服务系统:从网络通信到字典查询的完整机制
linux·服务器·网络·网络协议·udp协议·套接字绑定·英汉翻译服务系统
阿巴~阿巴~2 小时前
简易回声服务器实现与网络测试指南
linux·服务器·网络·udp协议·网络测试·udp套接字编程
凡间客5 小时前
Ansible安装与入门
linux·运维·ansible
君以思为故5 小时前
认识Linux -- 进程概念
linux·服务器
_OP_CHEN5 小时前
Linux网络编程:(八)GCC/G++ 编译器完全指南:从编译原理到实战优化,手把手教你玩转 C/C++ 编译
linux·运维·c++·编译和链接·gcc/g++·编译优化·静态链接与动态链接
阿乐艾官5 小时前
【十一、Linux管理网络安全】
linux·运维·web安全
weixin_537765806 小时前
【负载均衡】LVS DR模式详解
服务器·负载均衡·lvs