【转载请注明出处】://www.greatytc.com/p/b354000ae5e2
1.开启远程登录
“系统偏好设置”-->“共享”-->
image.png
2.配置ssh免密码登录
在终端中依次输入如下代码配置SSH免密码登陆:
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
3.验证
ssh localhost
image.png
【转载请注明出处】://www.greatytc.com/p/b354000ae5e2