Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
EC2のキーペア置換に気を付けよう
Search
YouYou
August 07, 2021
Programming
8k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
EC2のキーペア置換に気を付けよう
詳細ブログ↓
https://zenn.dev/yuta28/articles/ec2-keypair-replace
YouYou
August 07, 2021
Transcript
12 slides
EC2のキーペア置換に気を付けよう
Name:ユータ Occupation:SRE Twitter:@Y0u281 (オーでなくゼロです) ブログ:https://zenn.dev/yuta28 → 自己紹介 Twitter
目次 • 概要 • 手順 • 注意点 • まとめ
概要 • セキュリティーを見直すためにSSHのキーペアを置換することになった • authorized_keysファイルを編集するよりもAMI化してインスタンス起動で作成 するほうが楽と思い、AMIから設定した。
手順 1. キーペアを変更したいEC2のAMIを作成 2. AMIから新規にEC2を作成 3. キーペア選択時に新規のキーペアを選ぶ
手順 このインスタンスのキーペアNewWindows.pemを変更する
手順 AMIを作成して新規にEC2を起動する。
手順 新しいキーペア、afterKeyを選択しEC2を作成
注意点 前の鍵でも 入れてしまった!
注意点 authorized_keysファイルを確認すると前の公開鍵が残っていた。
まとめ • EC2の置換はAWS側で実施してくれない • キーペア配置後に古い公開鍵を消すことを忘 れずに
ありがとうございました 詳細は私のブログで ↓ EC2インスタンスのキーペア置換 について調べてみた
More Decks by YouYou
See All by YouYou
AWSマネコンに複数のアカウントで入れるようになりました
yuhta28
2
330
今インフラ技術をイチから学び直すなら
yuhta28
1
330
AWSに詳しくない人でも始められるコスト最適化ガイド
yuhta28
3
710
Datadog外形監視基盤をEC2から ECSへ移行してみた
yuhta28
0
1.9k
アウトプット頑張ったら企業からLT登壇の依頼がきた話
yuhta28
1
1.9k
小さなことから始めるAWSコスト最適入門
yuhta28
1
1.5k
Datadogのコストも監視しよう
yuhta28
1
1.1k
Rcloneを使った定期的なストレージ同期
yuhta28
0
910
Pulumiを触ってみよう
yuhta28
1
2.8k
Other Decks in Programming
See All in Programming
将来の標準フォーマッター?ktfmtを深堀る
t45k
0
230
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
320
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
320
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.6k
ローカルLLMの基本と近況 2611 / Local LLM basics and recent situation 2611
kishida
3
640
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
220
Spec-driven Development with AI
simas
PRO
0
2.3k
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
770
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
670
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
1
540
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
400
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
350
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1.1k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
390
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
Evolving SEO for Evolving Search Engines
ryanjones
0
370
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
430
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Building the Perfect Custom Keyboard
takai
2
970