ubuntu/debian 安装和卸载SSH,并开启

注意:如果使用的是WSL安装的ubuntu/debian,那么你需要先卸载:
#sudo apt remove openssh-server
#sudo apt install openssh-server
安装完成后SSH 服务默认开启
手动启动:
#systemctl start ssh.service
修改配置:
nano /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes

原文地址:https://www.cnblogs.com/xlpc/p/12317740.html