ssh连接服务器
首次使用请先ssh连接服务器激活服务,在Windows下的WindowsPowerShell下输入登录指令和密码完成连接。
点击SSH连接可获得登录指令和密码,正确连接后显示如下:
然后按照如下顺序输入指令
#生成jupyter的config文件
jupyter notebook --generate-config
#修改jupyter_notebook_config.py内容
vi /root/.jupyter/jupyter_notebook_config.py
#将以下内容写入jupyter_notebook_config.py中,并保存
c.NotebookApp.terminado_settings = {'shell_command': ['/bin/bash']}
#重启jupyter服务
systemctl restart jupyter.service