首页 > 代码库 > ubuntu 允许root远程ssh登录
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
ubuntu 允许root远程ssh登录
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。