mac 无法使用 ssh [email protected]本机
解决方法
-
以root身份,chmod +w /etc/ssh/sshd_config
-
vi /etc/ssh/sshd_config
-
PermitRootLogin 的默认是 prohibit-password ,改成 yes 。
如果只是去掉前面的 # 号,那么只有root用户可以ssh,普通用户不能ssh [email protected]本机。
以root身份,chmod +w /etc/ssh/sshd_config
vi /etc/ssh/sshd_config
PermitRootLogin 的默认是 prohibit-password ,改成 yes 。
如果只是去掉前面的 # 号,那么只有root用户可以ssh,普通用户不能ssh [email protected]本机。