为了方便起见,我想在我的服务器上启用 root 用户,人们反对这个想法的唯一原因(据我所知)是对 SSH 的蛮力攻击。
那么,SSH 中是否有一种方法可以为除 root 之外的所有用户启用密码访问,但允许 root 使用 ssh-key 访问?
操作系统: Ubuntu 服务器版 10.04 x86
SSH 版本: OpenSSH_5.3p1 Debian-3ubuntu7,OpenSSL 0.9.8k 2009 年 3 月 25 日
Ign*_*ams 12
从sshd_config(5)
手册页:
Run Code Online (Sandbox Code Playgroud)PermitRootLogin ... If this option is set to “without-password”, password authentica- tion is disabled for root.
归档时间: |
|
查看次数: |
851 次 |
最近记录: |