原因:是因为ubuntu系统默认是安装了
openssh-client
ssh客户端的
解决方案:
- 我们需要将
openssh-client
卸载,执行命令:
sudo apt-get remove openssh-client
- 然后再执行
sudo apt-get install openssh-server
使用root用户登录SSH
修改sshd_config
配置文件
sudo vi /etc/ssh/sshd_config
将PermitRootLogin
属性修改为yes
初始化ubuntu root管理员密码
转载请注明:R&M » 安装openssh-server报Depends: openssh-client (= 1:7.2….)错误