{"id":3927,"date":"2019-07-21T23:47:38","date_gmt":"2019-07-21T15:47:38","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3927"},"modified":"2019-07-21T23:47:40","modified_gmt":"2019-07-21T15:47:40","slug":"ssh-add","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ssh-add","title":{"rendered":"ssh-add\u547d\u4ee4 – agent\u7684\u9ad8\u901f\u7f13\u5b58"},"content":{"rendered":"\n
ssh-add\u547d\u4ee4\u662f\u628a\u4e13\u7528\u5bc6\u94a5\u6dfb\u52a0\u5230ssh-agent\u7684\u9ad8\u901f\u7f13\u5b58\u4e2d\u3002\u8be5\u547d\u4ee4\u4f4d\u7f6e\u5728\/usr\/bin\/ssh-add\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>ssh-add [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u628a\u4e13\u7528\u5bc6\u94a5\u6dfb\u52a0\u5230 ssh-agent \u7684\u9ad8\u901f\u7f13\u5b58\u4e2d\uff1a<\/p>\n\n\n\n \u4ecessh-agent\u4e2d\u5220\u9664\u5bc6\u94a5: <\/p>\n\n\n\n \u67e5\u770bssh-agent\u4e2d\u7684\u5bc6\u94a5\uff1a<\/p>\n\n\n\n ssh-add\u547d\u4ee4\u662f\u628a\u4e13\u7528\u5bc6\u94a5\u6dfb\u52a0\u5230ssh-agent\u7684\u9ad8\u901f\u7f13\u5b58\u4e2d\u3002\u8be5\u547d\u4ee4\u4f4d\u7f6e\u5728\/usr\/bin\/ssh-ad […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3927"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3927"}],"version-history":[{"count":10,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3927\/revisions"}],"predecessor-version":[{"id":4086,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3927\/revisions\/4086"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-D<\/td> \u5220\u9664ssh-agent\u4e2d\u7684\u6240\u6709\u5bc6\u94a5<\/td><\/tr> -d<\/td> \u4ecessh-agent\u4e2d\u7684\u5220\u9664\u5bc6\u94a5<\/td><\/tr> -l<\/td> \u663e\u793assh-agent\u4e2d\u7684\u5bc6\u94a5<\/td><\/tr> -L<\/td> \u663e\u793assh-agent\u4e2d\u7684\u516c\u94a5<\/td><\/tr> -X<\/td> \u5bf9ssh-agent\u8fdb\u884c\u89e3\u9501<\/td><\/tr> -x<\/td> \u5bf9ssh-agent\u8fdb\u884c\u52a0\u9501<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# ssh-add ~\/.ssh\/id_dsa<\/pre>\n\n\n\n
[root@linuxcool ~]# ssh-add -d ~\/.ssh\/id_xxx.pub<\/pre>\n\n\n\n
[root@linuxcool ~]# ssh-add -l<\/pre>\n","protected":false},"excerpt":{"rendered":"