StoryCode

'2023/06'에 해당되는 글 3건

  1. After.Reboot.Run.WSL.Automatically
  2. Install openssh-server
  3. 실행

After.Reboot.Run.WSL.Automatically

WSL
반응형

1) cmd > shell:startup

 

2) startup_wsl.bat

@echo off
wsl -u root -- service ssh start

반응형

'WSL' 카테고리의 다른 글

사용법.탐색기에서 wsl direcotory 접근 방법  (0) 2023.12.15
WSL.Add OSs.Windows 11.WSL2  (0) 2023.12.03
Install openssh-server  (0) 2023.06.24
실행  (0) 2023.06.07

Install openssh-server

WSL
반응형
sudo apt-get update
sudo apt-get upgrade

sudo apt-get purge openssh-server
sudo apt-get install openssh-server

/etc/ssh/sshd_config
Port 22
Protocol 2
PermitRootLogin no
AuthorizedKeysFile  .ssh/authorized_keys
PasswordAuthentication yes
PubkeyAuthentication yes
ChallengeResponseAuthentication no
X11Forwarding yes
UseDNS no

sudo service ssh --full-restart
sudo service ssh restart

ssh localhost
반응형

'WSL' 카테고리의 다른 글

사용법.탐색기에서 wsl direcotory 접근 방법  (0) 2023.12.15
WSL.Add OSs.Windows 11.WSL2  (0) 2023.12.03
After.Reboot.Run.WSL.Automatically  (0) 2023.06.26
실행  (0) 2023.06.07

실행

WSL
반응형

1) 

> cmd

 

cmd> c:\Windows\System32\wsl.exe --list --all

Linux용 Windows 하위 시스템 배포:
Ubuntu(기본값)

 

cmd > c:\Windows\System32\wsl.exe # Ubuntu(기본값) 접속

혹은

cmd> c:\Windows\System32\wsl.exe -d Ubuntu 2 # 2 는 WSL 버전 2 를 뜻함.

 

 

2) Startup.type WSL

바로 Ubuntu(기본값) 으로 접속

 

3) 버전보기

wsl --version

 

4) 모든 WSL 보기

wsl --list --all

반응형

'WSL' 카테고리의 다른 글

사용법.탐색기에서 wsl direcotory 접근 방법  (0) 2023.12.15
WSL.Add OSs.Windows 11.WSL2  (0) 2023.12.03
After.Reboot.Run.WSL.Automatically  (0) 2023.06.26
Install openssh-server  (0) 2023.06.24