[小技巧] mac禁止ssh用密码登录-只能用keyYing Bun / Mar 14, 2023tipdateMar 14, 2023slugtip-mac-only-ssh-by-keystatusPublishedsummary小技巧tagstiptypePostURLProblem & SummarySolutionScreenshotsProblem & SummarySolutionsudo sed -I .bak 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config sudo launchctl stop com.openssh.sshd && sudo launchctl start com.openssh.sshdScreenshots