{"id":1472,"date":"2026-08-25T20:39:46","date_gmt":"2026-08-25T12:39:46","guid":{"rendered":"https:\/\/imuslab.com\/wordpress\/?p=1472"},"modified":"2026-08-25T20:39:46","modified_gmt":"2026-08-25T12:39:46","slug":"%e4%bd%bf%e7%94%a8-claude-code-%e9%80%a3%e6%8e%a5-raspberry-pi-ssh","status":"publish","type":"post","link":"https:\/\/imuslab.com\/wordpress\/2026\/08\/25\/%e4%bd%bf%e7%94%a8-claude-code-%e9%80%a3%e6%8e%a5-raspberry-pi-ssh\/","title":{"rendered":"\u4f7f\u7528 Claude Code \u9023\u63a5 Raspberry Pi \/ SSH"},"content":{"rendered":"\n<p>\u56e0\u70ba\u7d93\u5e38\u6703\u7528\u5230\u4f46\u662f\u53c8\u5fd8\u8a18\uff0c\u6240\u4ee5\u5148\u628a\u6b65\u9a5f\u8a18\u9304\u4e0b\u4f86<\/p>\n\n\n\n<p>\u9996\u5148\uff0c\u6253\u958b Terminal \uff08\u6216 bash for Windows\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls ~\/.ssh\/id_ed25519.pub\n\n# \u5982\u679c\u4e0d\u5b58\u5728\u7684\u8a71\nssh-keygen -t ed25519\n\n# \u5047\u8a2d RPI \u7684 IP \u5730\u5740\u662f 192.168.0.14\nssh-copy-id pi@192.168.0.14<\/code><\/pre>\n\n\n\n<p>\u4e4b\u5f8c\u61c9\u8a72\u5c31\u53ef\u4ee5\u900f\u904e Claude Code \u9023\u63a5\u4e86\u3002\u4f46\u662f\u5982\u679c\u51fa\u73fe\u4e0b\u9762\u7684 Error \uff0c\u53ef\u80fd\u662f\u56e0\u70ba\u4f60\u7684 Pi IP \u6709\u51fa\u73fe\u904e\u8b8a\u52d5\uff08\u5728 DHCP \u7db2\u7d61\u74b0\u5883\u4e0b\u5e38\u898b\uff09\uff0c\u6240\u4ee5\u9700\u8981\u5148\u628a\u820a\u7684 key \u522a\u6389\u518d\u8907\u5236\u65b0\u7684\u904e\u53bb\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ssh-copy-id pi@192.168.0.14\n \/usr\/bin\/ssh-copy-id: INFO: Source of key(s) to be installed: \"{your_home_path}\/.ssh\/id_ed25519.pub\" \/usr\/bin\/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed \/usr\/bin\/ssh-copy-id: ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ERROR: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ERROR: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! \nERROR: Someone could be eavesdropping on you right now (man-in-the-middle attack)! ERROR: It is also possible that a host key has just been changed. ERROR: The fingerprint for the ED25519 key sent by the remote host is ERROR: SHA256:iksxxxxxxxxxxxxxxxxxxxxxxxxxxxxxOKBDTtA. \nERROR: Please contact your system administrator. ERROR: Add correct host key in {your_home_path}\/.ssh\/known_hosts to get rid of this message. \nERROR: Offending ECDSA key in {your_home_path}\/.ssh\/known_hosts:13 \nERROR: Host key for 192.168.0.14 has changed and you have requested strict checking. ERROR: Host key verification failed.<\/code><\/pre>\n\n\n\n<p>\u89e3\u6c7a\u65b9\u6cd5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-keygen -R 192.168.0.14\nssh-keygen -f {your_home_path}\/.ssh\/known_hosts -R 192.168.0.14\nssh-copy-id pi@192.168.0.14\n\n# \u7136\u5f8c\u61c9\u8a72\u6703\u770b\u5230\n# Are you sure you want to continue connecting (yes\/no\/&#91;fingerprint])?\n# \u9078 yes\n\n<\/code><\/pre>\n\n\n\n<p>\u9019\u6a23\u5c31\u53ef\u4ee5\u900f\u904e Claude Code \u9032\u884c\u9023\u7dda\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u70ba\u7d93\u5e38\u6703\u7528\u5230\u4f46\u662f\u53c8\u5fd8\u8a18\uff0c\u6240\u4ee5\u5148\u628a\u6b65\u9a5f\u8a18\u9304\u4e0b\u4f86 \u9996\u5148\uff0c\u6253\u958b Terminal \uff08\u6216 bash for Windows\uff09 \u4e4b\u5f8c\u61c9\u8a72\u5c31\u53ef\u4ee5\u900f\u904e Claude Code \u9023\u63a5\u4e86\u3002\u4f46\u662f\u5982\u679c\u51fa\u73fe\u4e0b\u9762\u7684 Error \uff0c\u53ef\u80fd\u662f\u56e0\u70ba\u4f60\u7684 Pi IP \u6709\u51fa\u73fe\u904e\u8b8a\u52d5\uff08\u5728 DHCP \u7db2\u7d61\u74b0\u5883\u4e0b\u5e38\u898b\uff09\uff0c\u6240\u4ee5\u9700\u8981\u5148\u628a\u820a\u7684 key \u522a\u6389\u518d\u8907\u5236\u65b0\u7684\u904e\u53bb\u3002 \u89e3\u6c7a\u65b9\u6cd5 \u9019\u6a23\u5c31\u53ef\u4ee5\u900f\u904e Claude Code \u9032\u884c\u9023\u7dda\u4e86\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[104,3],"tags":[],"class_list":["post-1472","post","type-post","status-publish","format-standard","hentry","category-bug-tips","category-instructions-and-information"],"_links":{"self":[{"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/posts\/1472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1472"}],"version-history":[{"count":1,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/posts\/1472\/revisions"}],"predecessor-version":[{"id":1473,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/posts\/1472\/revisions\/1473"}],"wp:attachment":[{"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imuslab.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}