ubuntu / debian install and uninstall SSH, and open

Note: If you are using WSL installed ubuntu / debian, then you need to uninstall:
# sudo APT the Remove OpenSSH-Server
# sudo APT install OpenSSH-Server
installation is complete the SSH service is enabled by default
to manually start:
#systemctl Start ssh.service
modification configuration:
Nano / etc / SSH / sshd_config
PermitRootLogin yes
PasswordAuthentication yes

Guess you like

Origin www.cnblogs.com/xlpc/p/12317740.html
Recommended