Bug 2185 - [Anolis23 Preview][x86_64]使用vhd镜像创建ecs后,无法远程使用root登录
Summary: [Anolis23 Preview][x86_64]使用vhd镜像创建ecs后,无法远程使用root登录
Status: RESOLVED INVALID
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 23.0
Hardware: All Linux
: P1-Urgent S2-major
Target Milestone: ---
Assignee: gaochang
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-15 11:49 UTC by chuyang_94
Modified: 2024-02-29 11:19 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chuyang_94 alibaba_cloud_group 2022-09-15 11:49:50 UTC
Description of problem:
使用最新的vhd镜像创建ecs实例后,无法使用root远程登录

Version-Release number of selected component (if applicable):
# cat /etc/os-release 
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

# uname -r
5.17.0-1.an23.x86_64

How reproducible:
必现

Steps to Reproduce:
1.上传vhd镜像
2.使用vhd镜像创建ecs实例
3.ssh远程登录实例

Actual results:
通过ssh未能远程登录实例

Expected results:
可通过ssh远程登录实例

Additional info:
通过一些配置查看,看到sshd_config内的PermitRootLogin项配置成了no
Comment 1 bolong_tbl alibaba_cloud_group 2022-10-20 16:36:48 UTC
Anolis 23 Preview x86版本仍然存在该问题
无法通过账密ssh登录,/etc/ssh/sshd_config配置PasswordAuthentication no
目前测试工具主要通过账密登录,该问题会影响测试执行
Comment 2 xuchunmei alibaba_cloud_group 2022-11-01 20:08:18 UTC
(In reply to bolong_tbl from comment #1)
> Anolis 23 Preview x86版本仍然存在该问题
> 无法通过账密ssh登录,/etc/ssh/sshd_config配置PasswordAuthentication no
> 目前测试工具主要通过账密登录,该问题会影响测试执行


从安全角度考虑,确实建议关闭密码登陆的方式,而推荐使用密钥对。
Comment 3 gaochang alibaba_cloud_group 2024-02-29 11:19:47 UTC
历史问题,属于设定问题,不属于 bug,关闭