{"id":137,"date":"2026-09-03T18:47:05","date_gmt":"2026-09-03T10:47:05","guid":{"rendered":"https:\/\/granddream.top\/index.php\/2026\/09\/03\/dsh-agent-ssh-dashboard\/"},"modified":"2026-09-03T18:47:05","modified_gmt":"2026-09-03T10:47:05","slug":"dsh-agent-ssh-dashboard","status":"publish","type":"post","link":"https:\/\/granddream.top\/index.php\/2026\/09\/03\/dsh-agent-ssh-dashboard\/","title":{"rendered":"\u5f00\u6e90:DSH Agent SSH Dashboard,\u628a AI \u7684\u6bcf\u6761 SSH \u547d\u4ee4\u90fd\u6446\u5230\u53f0\u9762\u4e0a"},"content":{"rendered":"<h2>\u4e3a\u4ec0\u4e48\u505a\u8fd9\u4e2a\u63d2\u4ef6<\/h2>\n<p>\u6211\u73b0\u5728\u7528 AI Agent(DeepSeek Harness,\u4e0b\u79f0 DSH)\u7ba1\u7406\u81ea\u5df1\u7684\u670d\u52a1\u5668\u3002Agent \u80fd\u901a\u8fc7 SSH \u5728\u8fdc\u7aef\u6267\u884c\u547d\u4ee4,\u4f46\u6bcf\u6b21\u6267\u884c,\u6211\u5728\u804a\u5929\u754c\u9762\u91cc\u770b\u5230\u7684\u53ea\u662f\u4e00\u5768 JSON \u5de5\u5177\u8c03\u7528\u2014\u2014\u547d\u4ee4\u5230\u5e95\u8dd1\u4e86\u4ec0\u4e48\u3001\u8f93\u51fa\u662f\u4ec0\u4e48\u3001\u6709\u6ca1\u6709\u8d85\u65f6\u3001\u8fde\u63a5\u8fd8\u6d3b\u7740\u5417,\u5168\u5f97\u9760\u7ffb\u8bb0\u5f55\u3002\u670d\u52a1\u5668\u64cd\u4f5c\u4e00\u591a,\u8fd9\u5c31\u6210\u4e86\u4e00\u4e2a\u9ed1\u76d2:\u51fa\u4e86\u95ee\u9898\u5206\u4e0d\u6e05\u662f\u547d\u4ee4\u5931\u8d25\u8fd8\u662f\u8fde\u63a5\u65ad\u4e86,\u957f\u65f6\u95f4\u4efb\u52a1\u8dd1\u5230\u54ea\u4e00\u6b65\u4e5f\u770b\u4e0d\u89c1\u3002<\/p>\n<p>\u4e8e\u662f\u6211\u5199\u4e86 <strong>DSH Agent SSH Dashboard<\/strong>:Agent \u7ee7\u7eed\u8d1f\u8d23\u6267\u884c,\u4eba\u7c7b\u5f97\u5230\u4e00\u4e2a\u53ea\u8bfb\u7684\u3001\u53ef\u4ee5\u9010\u5c42\u4e0b\u94bb\u7684\u770b\u677f\u3002<\/p>\n<h2>\u5b83\u662f\u4ec0\u4e48<\/h2>\n<p>\u4e00\u4e2a DeepSeek Harness \u63d2\u4ef6,\u7ed9 Agent \u63d0\u4f9b\u4e00\u7ec4 SSH \u5de5\u5177,\u540c\u65f6\u5728 Web \u754c\u9762\u4e0a\u52a0\u4e00\u5757\u300cSSH \u4f1a\u8bdd\u300d\u770b\u677f:<\/p>\n<ul>\n<li><code>ssh_session_open<\/code> \u2014\u2014 \u521b\u5efa\u6216\u91cd\u65b0\u6253\u5f00\u903b\u8f91\u4f1a\u8bdd(\u53ea\u767b\u8bb0\u8fde\u63a5\u53c2\u6570,\u9996\u6b21\u6267\u884c\u547d\u4ee4\u624d\u771f\u6b63\u63e1\u624b\u9a8c\u8bc1)<\/li>\n<li><code>ssh_bash<\/code> \u2014\u2014 \u901a\u8fc7\u672c\u5730 OpenSSH \u5728\u8fdc\u7aef\u6267\u884c <code>bash -s --<\/code>,\u6807\u51c6\u8f93\u51fa\u3001\u6807\u51c6\u9519\u8bef\u3001\u8fdc\u7aef\u9000\u51fa\u7801\u3001\u672c\u5730 SSH \u8fdb\u7a0b\u9000\u51fa\u7801\u3001\u8d85\u65f6\u72b6\u6001\u5168\u90e8\u5206\u5f00\u8bb0\u5f55<\/li>\n<li><code>ssh_task_start \/ status \/ stop \/ list<\/code> \u2014\u2014 \u957f\u4efb\u52a1\u7684\u5f02\u6b65\u542f\u52a8\u3001\u8f6e\u8be2\u3001\u7ec8\u6b62\u4e0e\u6e05\u5355(\u540e\u53f0 nohup + PID \u6587\u4ef6\u8ddf\u8e2a)<\/li>\n<li><code>ssh_sessions \/ ssh_session_close<\/code> \u2014\u2014 \u5217\u51fa\u5168\u90e8\u4f1a\u8bdd\u4e0e\u7edf\u8ba1\u3001\u6b63\u5e38\u5173\u95ed\u4f1a\u8bdd<\/li>\n<\/ul>\n<h2>\u770b\u677f\u957f\u4ec0\u4e48\u6837<\/h2>\n<figure>\n<div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/granddream.top\/wp-content\/uploads\/2026\/09\/dsh-ssh-dashboard-card.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" data-original=\"https:\/\/granddream.top\/wp-content\/uploads\/2026\/09\/dsh-ssh-dashboard-card.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"DSH SSH Dashboard \u7684\u547d\u4ee4\u5361\u7247:Agent \u2192 \u4f1a\u8bdd \u2192 Bash \u2192 \u6210\u529f\" width=\"993\" height=\"83\" \/><\/div><figcaption>\u770b\u677f\u4e2d\u7684\u547d\u4ee4\u5361\u7247:\u4e00\u6761\u8fdc\u7aef\u547d\u4ee4\u7684\u6267\u884c\u94fe\u8def Agent \u2192 \u4f1a\u8bdd \u2192 Bash,\u53f3\u4fa7\u7eff\u8272\u5fbd\u7ae0\u6807\u51fa\u7ed3\u679c(\u6210\u529f)\u3002<\/figcaption><\/figure>\n<p>\u4e00\u4e2a\u903b\u8f91\u4f1a\u8bdd\u4e00\u5f20\u5361\u7247,\u5361\u7247\u5de6\u8fb9\u6709\u4e00\u6761\u72b6\u6001\u8272\u5e26\u3002\u5361\u7247\u8868\u8fbe\u7684\u662f\u300c\u8fde\u63a5\u751f\u547d\u5468\u671f\u300d,\u800c\u4e0d\u662f\u547d\u4ee4\u6210\u8d25:<\/p>\n<table>\n<thead>\n<tr>\n<th>\u72b6\u6001<\/th>\n<th>\u542b\u4e49<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>ready<\/code><\/td>\n<td>\u5df2\u767b\u8bb0\u8fde\u63a5\u53c2\u6570,\u7b49\u5f85\u9996\u6b21\u547d\u4ee4\u9a8c\u8bc1\u8fde\u63a5<\/td>\n<\/tr>\n<tr>\n<td><code>healthy<\/code><\/td>\n<td>\u6700\u8fd1\u4e00\u6b21 SSH \u4f20\u8f93\u6b63\u5e38\u5b8c\u6210(\u5185\u90e8\u547d\u4ee4\u53ef\u4ee5\u6210\u529f\u4e5f\u53ef\u4ee5\u5931\u8d25)<\/td>\n<\/tr>\n<tr>\n<td><code>running<\/code><\/td>\n<td>\u6b63\u5728\u6267\u884c\u547d\u4ee4<\/td>\n<\/tr>\n<tr>\n<td><code>closed<\/code><\/td>\n<td>Agent \u6b63\u5e38\u5173\u95ed\u4e86\u4f1a\u8bdd<\/td>\n<\/tr>\n<tr>\n<td><code>error<\/code><\/td>\n<td>\u660e\u786e\u7684\u8ba4\u8bc1\u3001DNS\u3001\u4e3b\u673a\u5bc6\u94a5\u3001\u7f51\u7edc\u6216 SSH \u4f20\u8f93\u6545\u969c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u70b9\u5f00\u4e00\u5f20\u5361\u7247,\u662f\u9010\u8f6e\u7684\u300cAgent \u547d\u4ee4 \u2192 \u8fdc\u7aef\u54cd\u5e94\u300d\u5bf9\u8bdd\u89c6\u56fe:\u6807\u51c6\u8f93\u51fa\u548c\u6807\u51c6\u9519\u8bef\u5206\u6bb5\u5c55\u793a,\u5931\u8d25\u4fe1\u606f(\u5206\u7c7b + \u6458\u8981)\u5355\u72ec\u6210\u5757,\u6bcf\u6761\u547d\u4ee4\u53ef\u4ee5\u4e00\u952e\u4e0b\u8f7d\u5b8c\u6574\u8f93\u5165\u8f93\u51fa,\u6574\u4e2a\u4f1a\u8bdd\u4e5f\u80fd\u6574\u4f53\u5bfc\u51fa\u4e3a\u6587\u672c\u3002\u5f02\u6b65\u957f\u4efb\u52a1\u53e6\u6709\u4efb\u52a1\u5361\u7247,\u663e\u793a PID\u3001\u8fd0\u884c\u65f6\u957f\u548c\u6700\u65b0\u6d88\u606f\u3002<\/p>\n<blockquote>\n<p><strong>\u4e00\u4e2a\u5173\u952e\u8bbe\u8ba1:\u547d\u4ee4\u5931\u8d25\u4e0d\u4f1a\u628a\u4f1a\u8bdd\u5361\u7247\u6807\u7ea2\u3002<\/strong>\u547d\u4ee4\u5931\u8d25 \u2260 \u8fde\u63a5\u5931\u8d25\u2014\u2014<code>ls \u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u8def\u5f84<\/code> \u8fd4\u56de\u975e\u96f6\u5f88\u6b63\u5e38,\u800c\u8ba4\u8bc1\u5931\u8d25\u3001DNS \u89e3\u6790\u5931\u8d25\u624d\u662f\u8fde\u63a5\u95ee\u9898\u3002\u628a\u4e24\u8005\u6df7\u5728\u4e00\u8d77,\u770b\u677f\u5f88\u5feb\u6ee1\u5c4f\u7ea2,\u5931\u53bb\u4fe1\u606f\u91cf\u3002\u63d2\u4ef6\u628a\u300c\u8fde\u63a5\u751f\u547d\u5468\u671f\u300d\u548c\u300c\u5355\u547d\u4ee4\u7ed3\u679c\u300d\u62c6\u6210\u4e24\u5c42\u8bed\u4e49,\u5931\u8d25\u53ea\u8ba1\u5165\u7edf\u8ba1,\u8fde\u63a5\u51fa\u95ee\u9898\u624d\u4eae\u7ea2\u3002<\/p>\n<\/blockquote>\n<h2>\u5b89\u5168\u8003\u8651<\/h2>\n<ul>\n<li><strong>\u4eba\u53ea\u8bfb,Agent \u6267\u884c<\/strong>:\u770b\u677f\u4e0d\u7ed9\u4eba\u7c7b\u4efb\u4f55\u8f93\u5165\u901a\u9053,\u6240\u6709\u8fdc\u7aef\u64cd\u4f5c\u90fd\u8d70 Agent \u7684\u5de5\u5177\u8c03\u7528,\u53d7 DSH \u7684\u5ba1\u6279\u7b56\u7565\u7ea6\u675f<\/li>\n<li><strong>\u79c1\u94a5\u8def\u5f84\u4e0d\u51fa\u73b0\u5728\u770b\u677f\u91cc<\/strong>,\u4e5f\u4e0d\u51fa\u73b0\u5728 <code>ssh_sessions<\/code> \u7684\u8fd4\u56de\u4e2d<\/li>\n<li>\u9996\u6b21\u8fde\u63a5\u9ed8\u8ba4 OpenSSH <code>accept-new<\/code> \u7b56\u7565;\u751f\u4ea7\u73af\u5883\u5efa\u8bae\u663e\u5f0f <code>strict<\/code> \u5e76\u9884\u5148\u7ef4\u62a4 <code>known_hosts<\/code><\/li>\n<\/ul>\n<h2>\u5b89\u88c5<\/h2>\n<pre>git clone https:\/\/github.com\/dkvkvk\/dsh-agent-ssh-dashboard.git\ncd dsh-agent-ssh-dashboard\nnpm run check\ndsh plugin --profile desktop add link:.<\/pre>\n<p>\u5b8c\u6574\u9000\u51fa\u5e76\u91cd\u542f DSH Desktop,\u786e\u8ba4\u542f\u52a8\u9875\u5305\u542b <code>agent-ssh-dashboard<\/code> \u5c31\u88c5\u597d\u4e86\u3002\u4e4b\u540e\u76f4\u63a5\u5bf9 Agent \u8bf4\u4eba\u8bdd:<\/p>\n<ul>\n<li>\u300c\u6253\u5f00 SSH \u4f1a\u8bdd <code>prod<\/code>,\u4e3b\u673a server.example.com,\u7528\u6237 deploy\u300d<\/li>\n<li>\u300c\u5728 prod \u4e0a\u6267\u884c <code>uname -a &amp;&amp; df -h<\/code>\u300d<\/li>\n<li>\u300c\u5217\u51fa\u6240\u6709 SSH \u4f1a\u8bdd\u53ca\u547d\u4ee4\u7edf\u8ba1\u300d<\/li>\n<li>\u300c\u5173\u95ed prod \u4f1a\u8bdd\u300d<\/li>\n<\/ul>\n<h2>\u94fe\u63a5<\/h2>\n<p>\u4ed3\u5e93\u5730\u5740:<a href=\"https:\/\/github.com\/dkvkvk\/dsh-agent-ssh-dashboard\" rel=\"noopener\">github.com\/dkvkvk\/dsh-agent-ssh-dashboard<\/a>(MIT \u534f\u8bae,\u542b\u67b6\u6784\u6587\u6863\u3001Tool API \u6587\u6863\u4e0e\u6d4b\u8bd5)\u3002\u5982\u679c\u4f60\u7684 Agent \u4e5f\u5929\u5929\u5728\u670d\u52a1\u5668\u4e0a\u8dd1\u6d3b,\u6b22\u8fce\u8bd5\u8bd5,\u6709\u60f3\u6cd5\u968f\u624b\u5f00 issue\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ed9 DeepSeek Harness \u5199\u7684 SSH \u4f1a\u8bdd\u770b\u677f\u63d2\u4ef6:Agent \u6267\u884c\u3001\u4eba\u7c7b\u53ea\u8bfb;\u4e00\u4e2a\u4f1a\u8bdd\u4e00\u5f20\u5361\u7247,\u547d\u4ee4\u94fe\u8def\u3001\u8f93\u51fa\u4e0e\u7edf\u8ba1\u9010\u5c42\u4e0b\u94bb\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[18,16,15,17,20,19,21],"class_list":["post-137","post","type-post","status-publish","format-standard","hentry","category-open-source","tag-ai-agent","tag-deepseek-harness","tag-dsh","tag-ssh","tag-20","tag-19","tag-21"],"_links":{"self":[{"href":"https:\/\/granddream.top\/index.php\/wp-json\/wp\/v2\/posts\/137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/granddream.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/granddream.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/granddream.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/granddream.top\/index.php\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":0,"href":"https:\/\/granddream.top\/index.php\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"wp:attachment":[{"href":"https:\/\/granddream.top\/index.php\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/granddream.top\/index.php\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/granddream.top\/index.php\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}