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

推荐订阅源

H
Help Net Security
宝玉的分享
宝玉的分享
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
V
Visual Studio Blog
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
A
About on SuperTechFans
MyScale Blog
MyScale Blog
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
D
Docker
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
P
Proofpoint News Feed
L
LangChain Blog
Blog — PlanetScale
Blog — PlanetScale
The GitHub Blog
The GitHub Blog
博客园 - 【当耐特】
Martin Fowler
Martin Fowler

博客园 - 北极之光的博客

【转载】解决发版痛点:k8s配置滚动更新pod发版上线时,用户访问系统无感知 Rocky 9最小安装后的初始化 博文阅读密码验证 - 博客园 Windows和Office激活工具 英特尔台式机CPU功耗规格对比 2024桌面级CPU天梯图性能榜 (更新时间:20241114) 史上最全桌面级CPU天梯图-2024年10月更新(包含13/14代Intel/7000系列锐龙) WordPress手动升级教程 2-12 MySQL字段约束-索引-外键 2-11 mysql-sql语句进阶 2-10-Mysql基本语句和常见数据类型 redis 集群模式原理 Tomcat启动脚本 word设置多级列表样式 Git学习笔记 使用war包完成Jenkins升级 Jenkins设置中文 jenkins用户文档中心 Centos7通过war包部署jenkins(解决tomcat部署jenkins报404错误) CentOS7时间显示不对问题 Ansible实战MySQL安装 【自动化运维专题 4】ansible的 playbook 使用及举例
Rocky root远程登录 拒绝访问问题
北极之光的博客 · 2026-08-25 · via 博客园 - 北极之光的博客

故障现象

image

配置root账户远程访问时报 Access denied

关闭firewalld防火墙,确认sshd服务开启,依然提示拒绝访问

解决方案

主要是因为Rock 9默认禁止root用户远程密码登录

修改/etc/ssh//sshd_config

# 把这行
#PermitRootLogin prohibit-password
# 改成
PermitRootLogin yes
 
# 确保密码认证开启(默认一般是 yes)
PasswordAuthentication yes

systemctl restart sshd 重启ssh服务,使配置文件生效

再次远程登录即可