Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775
{"id":2190,"date":"2022-04-06T12:44:48","date_gmt":"2022-04-06T03:44:48","guid":{"rendered":"https:\/\/craft-gogo.com\/?p=2190"},"modified":"2023-08-19T22:37:18","modified_gmt":"2023-08-19T13:37:18","slug":"raspberry-pi-remote-ssh","status":"publish","type":"post","link":"https:\/\/craft-gogo.com\/raspberry-pi-remote-ssh\/","title":{"rendered":"\u3010Raspberry Pi\u3011\u30ea\u30e2\u30fc\u30c8SSH\u63a5\u7d9a\u3067PC\u306eVSCode\u304b\u3089python\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"},"content":{"rendered":"\n

\u666e\u6bb5Visual Studio Code(VSCode)\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3057\u3066\u3044\u308b\u4eba\u306f\u3001Raspberry Pi\u306ePython\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u3082VSCode\u3092\u4f7f\u3044\u305f\u3044\u3067\u3059\u3088\u306d\uff1f<\/p>\n\n\n\n

PC\u306eVSCode\u3067Python\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3001Raspberry Pi\u306b\u8ee2\u9001\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u30bd\u30d5\u30c8\u3067SSH\u63a5\u7d9a\u3057\u3066Python\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u4eba\u3082\u4e2d\u306b\u306f\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u5b9f\u969b\u3001\u79c1\u304c\u305d\u3046\u3067\u3057\u305f\u3002<\/p>\n\n\n\n

VSCode\u306eRemote-SSH\u3068\u3044\u3046\u62e1\u5f35\u6a5f\u80fd\u3092\u4f7f\u3048\u3070\u3001\u30b3\u30fc\u30c9\u4f5c\u6210\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u307e\u3067VSCode\u3067\u5b8c\u7d50\u3067\u304d\u3001PC\u304b\u3089Raspberry Pi\u3078\u306e\u30d5\u30a1\u30a4\u30eb\u8ee2\u9001\u4f5c\u696d\u304b\u3089\u89e3\u653e\u3055\u308c\u307e\u3059\u3002<\/span><\/strong><\/p>\n\n\n\n

\u4eca\u56de\u306fVSCode\u306eRemote-SSH\u306b\u3064\u3044\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304b\u3089\u4f7f\u3044\u65b9\u307e\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

Remote-SSH\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n

VSCode\u4e0a\u304b\u3089Raspberry Pi\u306bSSH\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306bRemote-SSH\u3068\u3044\u3046\u62e1\u5f35\u6a5f\u80fd\u3092\u4f7f\u3044\u307e\u3059\u3002\u62e1\u5f35\u6a5f\u80fd\u304b\u3089Remote – SSH\u3092\u691c\u7d22\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Config\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n

Remote-SSH\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3057\u305f\u3089\u3001Raspberry Pi\u306b\u63a5\u7d9a\u3055\u305b\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n\n\n\n

\u753b\u9762\u5de6\u30bf\u30d6\u306b\u3042\u308b\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30dc\u30bf\u30f3\u3092\u9078\u629e\u3057\u3001\u73fe\u308c\u305fConfigure\u30dc\u30bf\u30f3\u3092\u9078\u629e\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Config\u30d5\u30a1\u30a4\u30eb\u9078\u629e\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067Users\u4e0b\u306econfig\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3001\u4e2d\u8eab\u3092\u7de8\u96c6\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u4e0b\u56f3\u306e\u4f8b\u306b\u306a\u3089\u3063\u3066\u3001\u81ea\u5206\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066config\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Host\u306fVSCode\u3067\u306e\u8868\u793a\u540d\u3067\u3059\u3002\u81ea\u5206\u306b\u3068\u3063\u3066\u5206\u304b\u308a\u3084\u3059\u3044\u540d\u524d\u3092\u4ed8\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

HostName\u3001User\u3001Port\u306fRaspberry Pi\u3067\u8a2d\u5b9a\u3057\u305f\u5024\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

IdentityFile\u306f\u9375\u8a8d\u8a3c\u65b9\u5f0f\u306b\u3057\u3066\u3044\u305f\u3089\u3001\u79d8\u5bc6\u9375\u306e\u4fdd\u5b58\u5148\u3092\u6307\u5b9a\u3002<\/p>\n\n\n\n

config\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3068\u30ea\u30e2\u30fc\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u306bHost\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n

\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001Connect to Host in Current Window\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

SSH\u63a5\u7d9a\u30d1\u30b9\u30ef\u30fc\u30c9\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u306e\u3067\u5165\u529b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u753b\u9762\u5de6\u4e0b\u306bHost\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001SSH\u63a5\u7d9a\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Raspberry Pi Zero\u306f\u3001Remote-SSH\u975e\u5bfe\u5fdc\u306a\u306e\u3067\u6ce8\u610f\u3002<\/p>\n\n\n\n

\u4fdd\u5b58\u30d5\u30a9\u30eb\u30c0\u3092\u958b\u304f<\/h2>\n\n\n\n

Python\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001\u30b3\u30fc\u30c9\u3092\u4fdd\u5b58\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u958b\u304d\u307e\u3059\u3002\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u304b\u3089\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u958b\u304f\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u597d\u304d\u306a\u4fdd\u5b58\u5834\u6240\u3092\u9078\u629e\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u306b\u4fdd\u5b58\u30d5\u30a9\u30eb\u30c0\u304c\u8868\u793a\u3055\u308c\u308c\u3070OK\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Python\u30b3\u30fc\u30c9\u306e\u4f5c\u6210<\/h2>\n\n\n\n

Python\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001New File\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u3053\u3053\u3067\u306f\u3001HelloWorld.py\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u300cHellow World\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c<\/h2>\n\n\n\n

python\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001\u30a8\u30c7\u30a3\u30bf\u53f3\u4e0a\u306eRun Python File\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u300cHellow World\u300d\u304c\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u307e\u3068\u3081<\/h2>\n\n\n\n

VSCode\u306eRemote-SSH\u306b\u3064\u3044\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304b\u3089\u4f7f\u3044\u65b9\u307e\u3067\u306e\u89e3\u8aac\u3067\u3057\u305f\u3002<\/p>\n\n\n\n

Remote-SSH\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u4f5c\u6210\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u307e\u3067\u3092VSCode\u3067\u5b8c\u7d50<\/span><\/strong>\u3067\u304d\u308b\u306e\u3067\u3001Raspberry Pi\u3067\u306ePython\u30d7\u30ed\u30b0\u30e9\u30e0\u958b\u767a\u3082\u3053\u308c\u3067\u306f\u304b\u3069\u308a\u307e\u3059\u306d\u3002<\/p>\n\n\n\n

\u6700\u5f8c\u307e\u3067\u304a\u8aad\u307f\u9802\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u666e\u6bb5Visual Studio Code(VSCode)\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3057\u3066\u3044\u308b\u4eba\u306f\u3001Raspberry Pi\u306ePython\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u3082VSCode\u3092\u4f7f\u3044\u305f\u3044\u3067\u3059\u3088\u306d\uff1f PC\u306eVSCode\u3067Python\u30b3\u30fc\u30c9\u3092\u66f8\u3044 […]<\/p>\n","protected":false},"author":1,"featured_media":254,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[5,2],"tags":[],"_links":{"self":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/2190"}],"collection":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/comments?post=2190"}],"version-history":[{"count":19,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/2190\/revisions"}],"predecessor-version":[{"id":3574,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/2190\/revisions\/3574"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/media\/254"}],"wp:attachment":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/media?parent=2190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/categories?post=2190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/tags?post=2190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}