mac无法自动登录

来源:5-6 SSH免密登录

Zoro4117241

2018-03-25

mac已经添加公钥和私钥,退出后还是需要输入密码,终端输出:

[root@localhost .ssh]# ssh-add ~/.ssh/glc_rsa

Identity added: /root/.ssh/glc_rsa (/root/.ssh/glc_rsa)

[root@localhost .ssh]# cd ~

[root@localhost ~]# exit

登出

Connection to 192.168.x.x closed.

ccdeMac:~ glc$ ssh root@192.168.x.x

root@192.168.x.x's password:




写回答

1回答

编程浪子

2018-03-26

把公钥放到你要登录的机器上,在本地电脑加载 公钥

0
0

快速上手Linux 玩转典型应用

以主流CentOS 7 操作系统为例,系统讲解Linux,真实线上环境助你快速上手,独立配置运维服务器

1663 学习 · 572 问题

查看课程