wsl-ubuntu开启ssh
small@small:~$ sudo apt-get install ssh [sudo] password for small: Reading package lists... Done Building dependency tree Reading state information... Done openssh-server is already the newest version (1:8.2p1-4ubuntu0.2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.small@small:/etc/ssh$ sudo vi sshd_config # 解开以下注释 Port 2222 AddressFamily any ListenAddress 0.0.0.0 ListenAddress :: # 还有这里 # To disable tunneled clear text passwords, change to no here! PasswordAuthentication yessmall@small:/etc/ssh$ sudo service ssh start * Restarting OpenBSD Secure Shell server sshd
最后更新于