首次安装后须要先更新下源python
sudo apt update
安装pythonlinux
sudo apt install python3 #若是有多个python版本能够使用下面方式来进行切换 update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1
安装sshshell
sudo apt-get install openssh-server #安装ssh sudo service ssh --full-restart #完整启动 ssh service
xshell 链接测试windows
sudo apt install net-tools # 安装网络工具 ifconfig #查看ip xshell中配置host地址
vscode配置remote插件服务器
1. 安装 Remote Development extension pack 2. ctrl+p > 输入remote-ssh, 根据提示输入host地址,等待打开新远程窗口输入密码信息 3. 打开远程服务器项目目录, enjoy it !
子系统ssh开机自动启动网络
1. win+r 输入 shell:startup 进入启动目录 2. 增长startservice.vbs启动程序, 重启或者直接命令行执行测试 ```vbs Set ws = CreateObject("Wscript.Shell") ws.run "wsl -d debian -u root service ssh --full-restart", vbhide ```