Giter VIP home page Giter VIP logo

wsl's Introduction

WSL开机自启动ssh服务

1、准备工作

win+R键调出运行,输入shell:startup确定进入开始菜单启动程序目录(大致是C:\Users\用户名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup);

2、放置文件

将startWSL放到上述目录 将打开wsl,将init.sh放到/目录(Ubuntu的根目录),即/init.sh,记得要提前安装openssh-server(apt-get install openssh-server),应该默认安装好了;

3、设置权限

需要默认以root运行,所以在cmd命令下,先查看安装的Ubuntu版本 (cmd下)使用 ubuntu config --default-user root ​ Ubuntu18.04版本时使用下面的命令: ​ ubuntu1804 config --default-user root

4、重启电脑

重启电脑后,wsl默认开始运行了,就可以使用xshell直接连了,不需要别的操作

详情可以参考:

https://blog.csdn.net/qq_18286031/article/details/102847379

https://blog.csdn.net/qq_18286031/article/details/102847496

wsl's People

Contributors

yinshangqing86921 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.