1.用sudo apt install net-tools后使用ifconfig命令查看ip地址
通过宿主机的cmd即可ping通该ip
2. 用sudo service ssh status 查看 ssh.service状态,如果是”could not be found”,使用命令 sudo apt install openssh-server
使用命令启动ssh服务:sudo service ssh start
现在即可在宿主机cmd通过ssh 用户名@ip连到服务器
3.rtudio-server start 打开rstudio-server
宿主机用Ubuntu系统ifconfig查到的ip地址加8787在浏览器登陆