Sec-il-n / dic_issue_aws

0 stars 0 forks source link

Create EC2 instance #1

Open Sec-il-n opened 3 years ago

Sec-il-n commented 3 years ago

確認 cd

$ ls -l

chmod 400 ファイル名

  • [ ] キーペアを使ってEC2へSSH接続 $ ssh -i "<path_to_.pem>/hoge.pem"ec2-user @<Elastic IP address>@<Public IP address> 実際は同じ
Sec-il-n commented 3 years ago

EC2インスタンス初期設定

repo_upgrade: none
locale: ja_JP.UTF-8
Sec-il-n commented 3 years ago

ddコマンド ファイルをブロック単位で読み出し、指定通り変換して出力

cut -d: -f1 /etc/passwd ユーザー一覧 参考 cut -d: -f1 /etc/group Group一覧 参考