• 操作系统 AWS EC2 Ubuntu 22.04
  • 修改配置文件 /etc/ssh/sshd_config

    # 账号密码登录
    PasswordAuthentication yes
    # 键盘交互式身份验证
    KbdInteractiveAuthentication yes
  • 如果需要启用远程 root

    PermitRootLogin yes
  • 重启 sshd 服务生效

    systemctl restart sshd
本文出自 qbit snap

qbit
271 声望279 粉丝

引用和评论

0 条评论