Linux
  • Linux
  • Bash
  • Debian
  • Ubuntu
  • Shell
  • CentOS
  • SSH
☰

當 sshd_config 中沒有 PubkeyAuthentication 時如何排除某人

tag-icon 2024-7-1 • tag-icon sshd
當 sshd_config 中沒有 PubkeyAuthentication 時如何排除某人

我想設置PubkeyAuthentication no,/etc/ssh/sshd_config但應該排除某人,即: John

答案1

將這樣的內容添加到您的sshd_config:

Match User John
    PubkeyAuthentication yes

別忘了sudo systemctl reload sshd

THE END
Ubuntu 18.04 64 位元上的風暴英雄 Ubuntu 18.04 64 位元上的風暴英雄
是否有適用於 PowerPC Mac 的 Ubuntu(或其他版本)18.04 的任何版本? 是否有適用於 PowerPC Mac 的 Ubuntu(或其他版本)18.04 的任何版本?

相關內容

熱門問答

熱門問答

  • wine
  • winetricks
  • 18.04
  • powerpc

© 2024 rvso.com 版權所有. 網站地圖