执行 sudo apt install openssh-server 会报一下错误
需要我们安装openssh-client,其实系统里面已经有啦openssh-client
只是版本不对需要安装时带上版本号
sudo apt install openssh-client=1:6.6p1-2ubuntu1
再执行
sudo apt install openssh-server
继续配置openssh
sudo gedit /etc/ssh/sshd_config
将PermitRootLogin without-password注释掉并添加PermitRootLogin yes
#PermitRootLogin without-password
PermitRootLogin yes
重启ssh
/etc/init.d/ssh restart
到此就可以啦
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。