{"id":3190,"date":"2018-08-12T22:53:40","date_gmt":"2018-08-12T13:53:40","guid":{"rendered":"https:\/\/akamist.com\/blog\/?p=3190"},"modified":"2018-08-12T22:55:05","modified_gmt":"2018-08-12T13:55:05","slug":"%e3%83%ad%e3%83%aa%e3%83%9d%e3%83%83%e3%83%97%e3%81%ae%e3%83%ac%e3%83%b3%e3%82%bf%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%e3%81%abssh%e3%82%ad%e3%83%bc%e8%aa%8d%e8%a8%bc%e3%81%a7%e3%83%ad%e3%82%b0","status":"publish","type":"post","link":"https:\/\/akamist.com\/blog\/archives\/3190","title":{"rendered":"\u30ed\u30ea\u30dd\u30c3\u30d7\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306bSSH\u30ad\u30fc\u8a8d\u8a3c\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b"},"content":{"rendered":"<p>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306e\u30ed\u30ea\u30c3\u30dd\u30c3\u30d7\u3067\u306f\u3001\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u30d7\u30e9\u30f3\u4ee5\u4e0a\u3067\u5951\u7d04\u3059\u308b\u3068\u3001ssh\u30ed\u30b0\u30a4\u30f3\u6a29\u9650\u3092\u624b\u306b\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002SSH\u306e\u30ed\u30b0\u30a4\u30f3\u306f\u30e6\u30fc\u30b6ID\/\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u306e\u8a8d\u8a3c\u3068\u3001SSH\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb\u306b\u3088\u308b\u8a8d\u8a3c\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30ed\u30ea\u30c3\u30dd\u30c3\u30d7\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u3088\u308b\u8a8d\u8a3c\u3067\u306e\u30ed\u30b0\u30a4\u30f3\u306e\u307f\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001CI\u30c4\u30fc\u30eb\u306a\u3069\u304b\u3089\u81ea\u52d5\u3067\u30ed\u30ea\u30dd\u30c3\u30d7\u30b5\u30fc\u30d0\u3078\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u5834\u5408\u3001SSH\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb\u306b\u3088\u308b\u8a8d\u8a3c\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u4eca\u56de\u306f\u3001\u30ed\u30ea\u30dd\u30c3\u30d7\u306e\u30b5\u30fc\u30d0\u3078SSH\u30ad\u30fc\u8a8d\u8a3c\u306b\u3088\u308b\u30ed\u30b0\u30a4\u30f3\u3092\u884c\u3046\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>SSH\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/h2>\n<p>\u307e\u305a\u3001\u624b\u5143\u306e\u74b0\u5883\u3067ssh-keygen\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066ssh\u30ad\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u4f8b\u3067\u306f\u3001\u30ad\u30fc\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u304a\u308a\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\/Users\/xxx\/.ssh\/id_rsa_lolipop\u3068\/Users\/xxx\/.ssh\/id_rsa_lolipop.pub\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<br \/>\n\u30ad\u30fc\u4f5c\u6210\u306b\u805e\u304b\u308c\u308bpassphrase\u306f\u3001\u4eca\u56de\u306f\u7121\u3057\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre><code class=\"language-bash\">$ ssh-keygen -t rsa\nGenerating public\/private rsa key pair.\nEnter file in which to save the key (\/Users\/xxx\/.ssh\/id_rsa): \/Users\/xxx\/.ssh\/id_rsa_lolipop\nEnter passphrase (empty for no passphrase):\nEnter same passphrase again:\nYour identification has been saved in \/Users\/xxx\/.ssh\/id_rsa_lolipop.\nYour public key has been saved in \/Users\/xxx\/.ssh\/id_rsa_lolipop.pub.\nThe key fingerprint is:\nSHA256:...\n<\/code><\/pre>\n<h2>\u79d8\u5bc6\u9375\u3092\u30ed\u30ea\u30dd\u30c3\u30d7\u306e\u30b5\u30fc\u30d0\u306b\u30a2\u30c3\u30d7\u3059\u308b<\/h2>\n<p>\u6b21\u306b\u3001\u4f5c\u6210\u3055\u308c\u305f\u516c\u958b\u9375(\/Users\/xxx\/.ssh\/id_rsa_lolipop.pub)\u3092\u3001\u30ed\u30ea\u30dd\u30c3\u30d7\u306e\u30b5\u30fc\u30d0\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">$ mkdir .ssh\n$ vi .ssh\/authorized_keys\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001\u30e6\u30fc\u30b6\u306e\u6a29\u9650\u3092600\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\"># \u6a29\u9650\u3092\u30bb\u30c3\u30c8\n$ chmod 600 .ssh\/authorized_keys\n\n# \u6a29\u9650\u304c-rw-------\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\n```language-bash\n$ ls -l .ssh\/authorized_keys\n-rw------- 1 user LolipopUser 1679 2018-08-12 20:29 .ssh\/authorized_key\n<\/code><\/pre>\n<h2>\u30ed\u30fc\u30ab\u30eb\u306ePC\u3067\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u30ed\u30fc\u30ab\u30ebPC\u306b\u30ed\u30ea\u30dd\u30c3\u30d7\u306e\u63a5\u7d9a\u8a2d\u5b9a\u3092\u4f5c\u8a60\u3057\u307e\u3059\u3002<br \/>\nIdentifyFile\u306b\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u79d8\u5bc6\u9375\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\nUser, Hostname\u306b\u8a2d\u5b9a\u3059\u308b\u5024\u306f\u30ed\u30ea\u30dd\u30c3\u30d7\u306e\u7ba1\u7406\u753b\u9762\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n<pre><code class=\"language-xxx\">Host lolipop\n User xxx\n Hostname ssh999.lolipop.jp\n IdentityFile ~\/.ssh\/id_rsa_lolipop\n Port 2222\n<\/code><\/pre>\n<h2>SSH\u30ad\u30fc\u306b\u3088\u308b\u30ed\u30b0\u30a4\u30f3\u3092\u884c\u3046<\/h2>\n<p>\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089ssh\u30b3\u30de\u30f3\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">$ ssh lolipop\n\nLast login: Sun Aug 12 00:11:22 2018 from 11.22.33.44\n[xxxx@users999 ~]$\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306e\u30ed\u30ea\u30c3\u30dd\u30c3\u30d7\u3067\u306f\u3001\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u30d7\u30e9\u30f3\u4ee5\u4e0a\u3067\u5951\u7d04\u3059\u308b\u3068\u3001ssh\u30ed\u30b0\u30a4\u30f3\u6a29\u9650\u3092\u624b\u306b\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002SSH\u306e\u30ed\u30b0\u30a4\u30f3\u306f\u30e6\u30fc\u30b6ID\/\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u306e\u8a8d\u8a3c\u3068\u3001SSH\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb\u306b\u3088\u308b\u8a8d\u8a3c\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30ed\u30ea\u30c3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3088,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[37],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/akamist.com\/blog\/wp-content\/uploads\/2018\/07\/icon_lolipop.png","jetpack-related-posts":[{"id":3368,"url":"https:\/\/akamist.com\/blog\/archives\/3368","url_meta":{"origin":3190,"position":0},"title":"[GMO Cloud VPS]\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3057\u3066ssh\u30ad\u30fc\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b","date":"2018\u5e7411\u670823\u65e5","format":false,"excerpt":"GMO Cloud VPS\u3067\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3057\u3001ssh\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3063\u3066\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002 \u2026","rel":"","context":"\u672a\u5206\u985e","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/09\/icon_ssh.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3284,"url":"https:\/\/akamist.com\/blog\/archives\/3284","url_meta":{"origin":3190,"position":1},"title":"ssh\u30b3\u30de\u30f3\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u6642\u3001'-i'\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u306e\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb\u6307\u5b9a\u3092\u7701\u7565\u3059\u308b(ssh_config)","date":"2018\u5e7411\u67084\u65e5","format":false,"excerpt":"ssh\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306f`~\/.ssh\/id_rsa`\u3068\u306a\u3063\u3066\u304a\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u2026","rel":"","context":"\u30af\u30e9\u30a6\u30c9","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/09\/icon_ssh.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3063,"url":"https:\/\/akamist.com\/blog\/archives\/3063","url_meta":{"origin":3190,"position":2},"title":"vagrant\u306bssh\u30b3\u30de\u30f3\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u6642\u3001SSH\u306eKey\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u975e\u5bfe\u8a71\u3067\u53d6\u5f97\u3059\u308b","date":"2018\u5e747\u670813\u65e5","format":false,"excerpt":"vagrant\u3067\u306f\u3001`vagrant ssh`\u30b3\u30de\u30f3\u30c9\u3067VM\u5185\u306bssh\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u2026","rel":"","context":"Vagrant","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/10\/icon_vagrant.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1201,"url":"https:\/\/akamist.com\/blog\/archives\/1201","url_meta":{"origin":3190,"position":3},"title":"[Vagrant]vagrant up\u3067\u69cb\u7bc9\u3057\u305fVM\u3078TeraTerm,putty\u306a\u3069\u304b\u3089SSH\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u65b9\u6cd5","date":"2017\u5e7411\u670823\u65e5","format":false,"excerpt":"Vagrant\u3067vagrant up\u30b3\u30de\u30f3\u30c9\u3067Linux\u306eVM\u3092\u4f5c\u6210\u3057\u305f\u3068\u304d\u3001\u901a\u5e38\u306f`vagrant\u2026","rel":"","context":"Vagrant","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/10\/icon_vagrant.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":543,"url":"https:\/\/akamist.com\/blog\/archives\/543","url_meta":{"origin":3190,"position":4},"title":"[SSH]\u30d1\u30b9\u30ef\u30fc\u30c9\u672a\u8a2d\u5b9a\u306a\u306e\u306bEnter Passphrase for key ...\/.ssh\/id_rsa\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3068\u304d","date":"2017\u5e749\u67089\u65e5","format":false,"excerpt":"ssh\u3067\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u3092\u672a\u8a2d\u5b9a\u306a\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb\u3092.ssh\/id_rsa\u306b\u304a\u3044\u305f\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u2026","rel":"","context":"Linux","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/09\/icon_ssh.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3583,"url":"https:\/\/akamist.com\/blog\/archives\/3583","url_meta":{"origin":3190,"position":5},"title":"circleci\u30b3\u30de\u30f3\u30c9\u306elocal\u5b9f\u884c\u3067ssh\u30ad\u30fc\u3092\u30b3\u30f3\u30c6\u30ca\u306b\u6e21\u3059","date":"2019\u5e743\u670817\u65e5","format":false,"excerpt":"CircleCI\u3067\u306fcircleci\u30b3\u30de\u30f3\u30c9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u3001\u30ed\u30fc\u30ab\u30eb\u306ePC\u304b\u3089`.circ\u2026","rel":"","context":"CircleCI","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/posts\/3190"}],"collection":[{"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/comments?post=3190"}],"version-history":[{"count":4,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/posts\/3190\/revisions"}],"predecessor-version":[{"id":3194,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/posts\/3190\/revisions\/3194"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/media\/3088"}],"wp:attachment":[{"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/media?parent=3190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/categories?post=3190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/tags?post=3190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}