{"id":3920,"date":"2019-07-21T23:49:03","date_gmt":"2019-07-21T15:49:03","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3920"},"modified":"2019-07-21T23:49:05","modified_gmt":"2019-07-21T15:49:05","slug":"ssh-agent","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ssh-agent","title":{"rendered":"ssh-agent\u547d\u4ee4 – ssh\u5bc6\u94a5\u7ba1\u7406\u5668"},"content":{"rendered":"\n
ssh-agent\u547d\u4ee4\u662f\u4e00\u79cd\u63a7\u5236\u7528\u6765\u4fdd\u5b58\u516c\u94a5\u8eab\u4efd\u9a8c\u8bc1\u6240\u4f7f\u7528\u7684\u79c1\u94a5\u7684\u7a0b\u5e8f\u3002ssh-agent\u5728X\u4f1a\u8bdd\u6216\u767b\u5f55\u4f1a\u8bdd\u4e4b\u521d\u542f\u52a8\uff0c\u6240\u6709\u5176\u4ed6\u7a97\u53e3\u6216\u7a0b\u5e8f\u5219\u4ee5\u5ba2\u6237\u7aef\u7a0b\u5e8f\u7684\u8eab\u4efd\u542f\u52a8\u5e76\u52a0\u5165\u5230ssh-agent\u7a0b\u5e8f\u4e2d\u3002\u901a\u8fc7\u4f7f\u7528\u73af\u5883\u53d8\u91cf\uff0c\u53ef\u5b9a\u4f4d\u4ee3\u7406\u5e76\u5728\u767b\u5f55\u5230\u5176\u4ed6\u4f7f\u7528ssh\u673a\u5668\u4e0a\u65f6\u4f7f\u7528\u4ee3\u7406\u81ea\u52a8\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\u3002<\/p>\n\n\n\n
\u5176\u5b9essh-agent\u5c31\u662f\u4e00\u4e2a\u5bc6\u94a5\u7ba1\u7406\u5668\uff0c\u8fd0\u884cssh-agent\u4ee5\u540e\uff0c\u4f7f\u7528ssh-add\u5c06\u79c1\u94a5\u4ea4\u7ed9ssh-agent\u4fdd\u7ba1\uff0c\u5176\u4ed6\u7a0b\u5e8f\u9700\u8981\u8eab\u4efd\u9a8c\u8bc1\u7684\u65f6\u5019\u53ef\u4ee5\u5c06\u9a8c\u8bc1\u7533\u8bf7\u4ea4\u7ed9ssh-agent\u6765\u5b8c\u6210\u6574\u4e2a\u8ba4\u8bc1\u8fc7\u7a0b\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> ssh-agent [\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 \u8fd0\u884cssh-agent\uff0c\u6253\u5370\u672c\u8eab\u7684\u73af\u5883\u548c\u53d8\u91cf\uff1a<\/p>\n\n\n\n \u4f7f\u7528-d\u53c2\u6570\uff0c\u8fd0\u884c\u8c03\u8bd5\u6a21\u5f0f\uff1a<\/p>\n\n\n\n \u4f7f\u7528-k\u53c2\u6570\u6740\u6389ssh-agent\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n ssh-agent\u547d\u4ee4\u662f\u4e00\u79cd\u63a7\u5236\u7528\u6765\u4fdd\u5b58\u516c\u94a5\u8eab\u4efd\u9a8c\u8bc1\u6240\u4f7f\u7528\u7684\u79c1\u94a5\u7684\u7a0b\u5e8f\u3002ssh-agent\u5728X\u4f1a\u8bdd\u6216\u767b\u5f55\u4f1a\u8bdd\u4e4b […]<\/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\/3920"}],"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=3920"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3920\/revisions"}],"predecessor-version":[{"id":4088,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3920\/revisions\/4088"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-a bind_address<\/td> \u5c06\u4ee3\u7406\u7ed1\u5b9a\u5230Unix\u57df\u5957\u63a5\u5b57\u7ed1\u5b9a\u5730\u5740<\/td><\/tr> -d<\/td> \u8c03\u8bd5\u6a21\u5f0f<\/td><\/tr> -k<\/td> \u628assh-agent\u8fdb\u7a0b\u6740\u6389<\/td><\/tr> -s<\/td> \u751f\u6210Bourne shell \u98ce\u683c\u7684\u547d\u4ee4\u8f93\u51fa<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# ssh-agent<\/pre>\n\n\n\n
[root@linuxcool ~]# ssh-agent -d<\/pre>\n\n\n\n
[root@linuxcool ~]# ssh-agent -k<\/pre>\n","protected":false},"excerpt":{"rendered":"