[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就不行了