利用端口转发来访问virtualbox虚拟机centos6的jupyter notebook
1、除了在virtualbox中设置常规的端口转发外,还需要在windows上打开cmd,输入ssh -N -f -L localhost:8888:localhost:8889 -p 22 root@127.0.0.1
其中,第一个localhost:8888是windows下的ip和端口,第二个localhost:8889是centos下的ip和端口
其中,第一个localhost:8888是windows下的ip和端口,第二个localhost:8889是centos下的ip和端口
2、如果出现以下提示
![](https://img2018.cnblogs.com/blog/1227232/201809/1227232-20180919101350902-66944080.png)
则删除.ssh文件夹下的文件再执行1的操作即可