请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

老师 ssh-add命令不成功

[root@localhost .ssh]# ssh-add ~./ssh/test_rsa
~./ssh/test_rsa: No such file or directory
[root@localhost .ssh]#
提示上面的
[root@localhost .ssh]# ls -al
总用量 20
drwx------. 2 root root 98 10月 1 10:38 .
dr-xr-x—. 3 root root 177 10月 1 10:38 …
-rw-r–r--. 1 root root 408 10月 1 10:38 authorized_keys
-rw-r–r--. 1 root root 57 10月 1 10:11 config
-rw-r–r--. 1 root root 175 10月 1 09:38 known_hosts
-rw-------. 1 root root 1675 10月 1 10:34 test_rsa
-rw-r–r--. 1 root root 408 10月 1 10:34 test_rsa.pub
是有该密钥的 是为何呢?
windows用xshell操作的就可以,直接终端ssh就不行了

正在回答 回答被采纳积分+3

插入代码

1回答

编程浪子 2018-10-05 23:58:58

ssh-add ~/.ssh/test_rsa

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
快速上手Linux 玩转典型应用
  • 参与学习       1663    人
  • 解答问题       572    个

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

了解课程
意见反馈 帮助中心 APP下载
官方微信