给ssh服务器加载私钥时报错
来源:5-6 SSH免密登录

赵佳子彧
2019-03-26
[root@192 .ssh]# ssh-add ~/.ssh/remote1
Could not open a connection to your authentication agent.
2回答
-
你好
6666 ,有问题我们继续沟通。和你说的方案差不多就是这样的
112019-03-29 -
赵佳子彧
提问者
2019-03-26
已参考https://blog.csdn.net/yajie_china/article/details/80645014解决
但是和老师操作的结果不太一样
[root@192 .ssh]# ssh-add ~/.ssh/remote1
Could not open a connection to your authentication agent.
[root@192 .ssh]# eval `ssh-agent -s`
Agent pid 2308
[root@192 .ssh]# ssh-add ~/.ssh/remote1
Identity added: /root/.ssh/remote1 (/root/.ssh/remote1)
[root@192 .ssh]# ssh root@192.168.0.106
The authenticity of host '192.168.0.106 (192.168.0.106)' can't be established.
ECDSA key fingerprint is SHA256:fg/8OmBQvymBEexKsgIcOQfOMO8jfJwOMxRLgRw6ckU.
ECDSA key fingerprint is MD5:82:b3:6d:60:ea:19:ef:16:6e:b7:2d:ba:cc:90:e0:23.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.106' (ECDSA) to the list of known hosts.
Last login: Tue Mar 26 22:51:05 2019 from 192.168.0.105
[root@192 ~]#
10
相似问题