惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
云风的 BLOG
云风的 BLOG
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
P
Proofpoint News Feed
博客园_首页
J
Java Code Geeks
C
Check Point Blog
I
InfoQ
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
D
Docker
U
Unit 42
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
GbyAI
GbyAI
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog

鸟叔の窝

开箱国内最牛5g 随身Wi-Fi中兴u30pro Centos安装docker以及docker compose的方法 Windows 12系统iso下载和安装 品牌电脑组装电脑进BIOS方法 用代码脚本开启MacBook Pro外接2k4k显示屏HiDPI MacBook Pro连接2k显示器开启HiDPI 长虹液晶电视刷机 继续分享几个美国和香港的Apple ID 压箱底的2张13年前的美金拿出来晒晒 鸟叔正在使用的vps
甲骨文云修改为root登录vps
鸟叔 · 2026-03-03 · via 鸟叔の窝

甲骨文云默认登录的用户名是ubuntu和私钥的方式登录vps,我们可以修改为root加密码登录vps

WX20260303-201946@2x.png

网友分享的两种方法

方法1

sudo -i切换到root

passwd设置密码

sudo sed -i ‘s/^#?PermitRootLogin.*/PermitRootLogin yes/g’ /etc/ssh/sshd_config;

sudo sed -i ‘s/^#?PasswordAuthentication.*/PasswordAuthentication yes/g’ /etc/ssh/sshd_config;

sudo service sshd restart

reboot重启服务器

方法2
sudo -i 用root身份

passwd 设置root密码

vi /etc/ssh/sshd_config 修改配置文件

PermitRootLogin yes

PasswordAuthentication yes

reboot重启服务器