sudo passwdcd /etc/aptcp sources.list sources.list.backuphttps://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/apt-get updateapt-get remove openssh-server -yapt-get install openssh-server -yvim /etc/ssh/sshd_configPort 2222 # 默认的是22,但是windows有自己的ssh服务用的也是22端口,修改一下
UsePrivilegeSeparation no
PasswordAuthentication yes
AllowUsers root
PermitRootLogin yesservice ssh --full-restart