Ubuntu 18.04 允许Root登陆SSH
一般情况下主机商的模板都是允许root登陆的,但也有特例。今天记录下SSH开启root登陆的步骤。
以下步骤均需要登陆root用户执行,使用su
命令切换到root
1、安装Nano
nano比较好上手,比Vi简单,执行
apt-get update #更新源缓存
apt-get install -y nano #安装nano
2、修改SSH配置文件
输入
nano /etc/ssh/sshd_config
找到
#PermitRootLogin prohibit-password
修改为
PermitRootLogin yes
然后执行Ctrl+X退出,退出时输入Y保存修改
然后执行
service sshd restart
重启SSH服务,最后重新登陆就是Root了。
This is a really gokod tip particularly to those new to thee blogosphere.
Brief but very accurate information… Appreciate your sharing this
one. A must read post! https://Glassi-APP.Blogspot.com/2025/08/how-to-download-glassi-casino-app-for.html
I think what you published was very logical. However, what about this?
what if you typed a catchier title? I ain’t suggesting your information isn’t good, buut what if you added
something that grabbed folk’s attention? I man blog
topic is kinda vanilla. You might look at Yahoo’s home page and note how they create news
headlines to grab viewers interested. You might try adding
a video or a pic or two to grsb readers interewted abkut everything’ve ggot to say.
In my opinion, it could mske your posts a little livelier. https://Skillnaukri.com/employer/tonybet/