mac 无法使用 ssh [email protected]本机

mac 无法使用 ssh [email protected]本机

解决方法

  1. 以root身份,chmod +w /etc/ssh/sshd_config

  2. vi /etc/ssh/sshd_config

  3. PermitRootLogin 的默认是 prohibit-password ,改成 yes 。
    如果只是去掉前面的 # 号,那么只有root用户可以ssh,普通用户不能ssh [email protected]本机。
    mac 无法使用 ssh [email protected]本机