【转载请注明出处】:https://www.jianshu.com/p/b354000ae5e2
1.开启远程登录
“系统偏好设置”-->“共享”-->

2.配置ssh免密码登录
在终端中依次输入如下代码配置SSH免密码登陆:
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
3.验证
ssh localhost

【转载请注明出处】:https://www.jianshu.com/p/b354000ae5e2
【转载请注明出处】:https://www.jianshu.com/p/b354000ae5e2
“系统偏好设置”-->“共享”-->
在终端中依次输入如下代码配置SSH免密码登陆:
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
ssh localhost
【转载请注明出处】:https://www.jianshu.com/p/b354000ae5e2
本文标题:mac 配置ssh
本文链接:https://www.haomeiwen.com/subject/awjzbxtx.html
网友评论