{"id":2131,"date":"2024-03-24T21:13:54","date_gmt":"2024-03-24T12:13:54","guid":{"rendered":"https:\/\/www.kwonline.org\/memo2\/?p=2131"},"modified":"2024-03-24T21:13:54","modified_gmt":"2024-03-24T12:13:54","slug":"emacs-tramp-mode-to-open-remote-file-ssh-directly","status":"publish","type":"post","link":"https:\/\/www.kwonline.org\/memo2\/2024\/03\/24\/emacs-tramp-mode-to-open-remote-file-ssh-directly\/","title":{"rendered":"Emacs \u3067\u30ea\u30e2\u30fc\u30c8\u30db\u30b9\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u3092 SSH \u63a5\u7d9a\u3057\u3066\u76f4\u63a5\u7de8\u96c6"},"content":{"rendered":"<p>&nbsp;<br \/>\n\u4eca\u307e\u3067\u30ea\u30e2\u30fc\u30c8\u30db\u30b9\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u306f vim \u3067\u7de8\u96c6\u3057\u3066\u3066\u30c0\u30b5\u304b\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002<\/p>\n<p>Emacs \u306e TRAMP mode (Transparent Remote Access, Multiple Protocols mode) \u3092\u4f7f\u3046\u3002<\/p>\n<p>\u307e\u305a\u306f\u30ea\u30e2\u30fc\u30c8\u30db\u30b9\u30c8\u306b SSH \u63a5\u7d9a\u3059\u308b\u74b0\u5883\u3092\u6574\u3048\u308b\u3002<br \/>\nPubkey \u8a8d\u8a3c\u3092\u3057\u3066\u308b\u306e\u3067\u3001 ~\/.ssh\/config \u3092\u7528\u610f\u3057\u305f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nHost myserver\r\n    HostName 10.0.0.1\r\n    User orenomemo\r\n    IdentityFile ~\/.ssh\/id_rsa\r\n<\/pre>\n<p>\u4f5c\u3063\u305f\u3089 chmod \u3057\u3068\u304f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nchmod 600 ~\/.ssh\/config\r\n<\/pre>\n<p>\u305d\u3057\u305f\u3089 Emacs \u306e\u51fa\u756a\u3002<br \/>\nEmacs \u8d77\u52d5\u5f8c\u3001C-x C-f \u3067\u30ea\u30e2\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC-x C-f \/ssh:orenomemo@myserver:~\/test.txt\r\n<\/pre>\n<p>\u3053\u308c\u3067\u3082\u3046 SSH \u3057\u305f\u6642\u306b vim \u3057\u306a\u304f\u3066 OK.<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u4eca\u307e\u3067\u30ea\u30e2\u30fc\u30c8\u30db\u30b9\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u306f vim \u3067\u7de8\u96c6\u3057\u3066\u3066\u30c0\u30b5\u304b\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002 Emacs \u306e TRAMP mode (Transparent Remote Access, Multiple Protocols [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,8],"tags":[],"class_list":["post-2131","post","type-post","status-publish","format-standard","hentry","category-emacs","category-linux"],"_links":{"self":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/2131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/comments?post=2131"}],"version-history":[{"count":3,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/2131\/revisions"}],"predecessor-version":[{"id":2135,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/2131\/revisions\/2135"}],"wp:attachment":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/media?parent=2131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/categories?post=2131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/tags?post=2131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}