ubuntu 允许root远程ssh登录

启用root用户:sudo passwd root     //修改密码后就启用了。

一 安装 ssh服务

apt-get install ssh

二 开通 root远程登录权限

vi /etc/ssh/sshd_config

将PermitRootLogin without-password 修改为PermitRootLogin yes

三 重启ssh服务

service ssh restart

四 登录

ssh IP

ssh 192.168.1.128

ubuntu ip

auto eth0

iface eth0 inet static

address 192.168.1.128

netmask 255.255.255.0

gateway 192.168.1.1

dns-nameservers 192.168.1.1

原文地址:https://www.cnblogs.com/petrusxu/p/4005052.html