{"version":"1.0","author_url":"https://blog.hatena.ne.jp/celeron1ghz/","height":"190","published":"2024-02-19 21:39:45","image_url":null,"url":"https://celeron1ghz.hatenablog.com/entry/2024/02/19/213945","author_name":"celeron1ghz","description":"\u7c21\u5358\u3060\u3063\u305f\u3002 \u3084\u308a\u65b9\u3068\u3057\u3066\u306fssh\u3092hook\u3059\u308b\u3082\u306e\u3092\u4ed5\u8fbc\u3093\u3067\u3059\u308a\u66ff\u3048\u308b\u3068\u8a00\u3046\u611f\u3058\u3002 \u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068\u63a5\u7d9a ~/.ssh/config \u306b\u4e0b\u8a18\u3092\u8ffd\u52a0\u3002 host i-* mi-* ProxyCommand sh -c \"aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'\" \u305d\u3046\u3059\u308b\u3068\u4e0b\u8a18\u3067\u7e4b\u3052\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u63a5\u7d9a\u78ba\u8a8d\u3059\u308b\u3002@ \u3088\u308a\u5f8c\u308d\u306fec2\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9ID\u3092\u6307\u5b9a\u3059\u308b\u3002 ssh -i ~/path/to/privatekey.pem ec2-user\u2026","provider_url":"https://hatena.blog","blog_title":"\u30c4\u30fc","title":"AWS\u306esession manager\u7d4c\u7531\u3067scp\u3059\u308b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fceleron1ghz.hatenablog.com%2Fentry%2F2024%2F02%2F19%2F213945\" title=\"AWS\u306esession manager\u7d4c\u7531\u3067scp\u3059\u308b - \u30c4\u30fc\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"provider_name":"Hatena Blog","type":"rich","blog_url":"https://celeron1ghz.hatenablog.com/"}