wsl host config
vim /etc/hosts
1 | # This file is automatically generated by WSL based on the Windows hosts file: |
ssh remote to wsl
sudo apt-get remove openssh-server
sudo apt-get install openssh-server
sudo vim /etc/ssh/sshd_config
修改配置
/etc/ssh/sshd_config
1 | Port 2222 #默认的是22,但是windows有自己的ssh服务,也是监听的22端口,所以这里要改一下 |
reboot ssh
sudo service ssh –full-restart
linux-brew install hisory version
1 | brew uninstall <package> # Note 0 |