Port 2222 # 默认 22 已占用,换为 2222 UsePrivilegeSeparation no # yes -> no # 允许 root 账户登陆,需要使用 Xshell 登陆 root 账户的话修改为 yes PermitRootLogin yes PasswordAuthentication yes # no -> yes
报错
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
openssh-server : Depends: openssh-client (= 1:7.2p2-4ubuntu2.6) but 1:7.6p1-4 is to be installed
E: Unable to correct problems, you have held broken packages.
解决:
sudo apt-get remove openssh-client
sudo apt-get install openssh-server
sudo service s