StoryCode

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