사용자 도구

사이트 도구


aws:amazon_linux

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
마지막 판 양쪽 다음 판
aws:amazon_linux [2021/10/23 14:53]
kwon37xi
aws:amazon_linux [2021/11/17 09:21]
kwon37xi
줄 3: 줄 3:
   * [[https://hub.docker.com/_/amazonlinux/|Amazon Linux Docker]]   * [[https://hub.docker.com/_/amazonlinux/|Amazon Linux Docker]]
   * [[https://app.vagrantup.com/bento/boxes/amazonlinux-2|Vagrant bento/amazonlinux-2]]   * [[https://app.vagrantup.com/bento/boxes/amazonlinux-2|Vagrant bento/amazonlinux-2]]
 +
 +===== Amazon Linux 2 =====
 +  * [[https://aws.amazon.com/ko/amazon-linux-2/|Amazon Linux 2]]
 +  * [[https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-linux-ami-basics.html|Amazon Linux - Amazon Elastic Compute Cloud]]
 +
 +===== WSL =====
 +  * [[https://aws.amazon.com/ko/blogs/developer/developing-on-amazon-linux-2-using-windows/|Developing on Amazon Linux 2 using Windows | AWS Developer Tools Blog]]
 +  * [[windows:wsl|Windows Subsystem For Linux]]
  
 ===== SSH Key 생성 ===== ===== SSH Key 생성 =====
줄 25: 줄 33:
 </code> </code>
  
 +===== Public Key 자동 추가 =====
 +  * [[https://aws.amazon.com/ko/premiumsupport/knowledge-center/ec2-user-account-cloud-init-user-data/|cloud-init 및 사용자 데이터를 사용하여 SSH 액세스 권한이 있는 새 사용자 계정을 EC2 인스턴스에 추가]]
 +  * 아래에서 ''<원하는 public key 문자열>''을 말 그대로 public key 값으로 넣는다.
 +
 +<code yml>
 +#cloud-config
 +cloud_final_modules:
 +- [users-groups,always]
 +users:
 +  - name: username
 +    groups: [ wheel ]
 +    sudo: [ "ALL=(ALL) NOPASSWD:ALL" ]
 +    shell: /bin/bash
 +    ssh-authorized-keys: 
 +    - ssh-rsa <원하는 public key 문자열>
 +</code>
 ===== PasswordAuthentication ===== ===== PasswordAuthentication =====
   * [[linux:ssh|Linux SSH]]에서 비밀번호 기반 인증을 하려면 ''/etc/ssh/sshd_config''에서 ''PasswordAuthentication yes'' 설정이 필요한데, AWS 상의 Linux 들은 이 파일을 재부팅할 때마다 ''/etc/cloud/*'' 의 설정을 기반으로 항상 덮어써 버린다.   * [[linux:ssh|Linux SSH]]에서 비밀번호 기반 인증을 하려면 ''/etc/ssh/sshd_config''에서 ''PasswordAuthentication yes'' 설정이 필요한데, AWS 상의 Linux 들은 이 파일을 재부팅할 때마다 ''/etc/cloud/*'' 의 설정을 기반으로 항상 덮어써 버린다.
줄 32: 줄 56:
 </code> </code>
  
-===== Amaozn Linux Virtual Machine 사용 =====+===== Amazon Linux Virtual Machine 사용 =====
   * AWS 상이 아닌, 본인 PC등에서 Amazon Linux 가상 머신을 설치할 수 있다.   * AWS 상이 아닌, 본인 PC등에서 Amazon Linux 가상 머신을 설치할 수 있다.
   * [[https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/amazon-linux-2-virtual-machine.html|Amazon Linux 2를 온프레미스 가상 머신으로 실행 - Amazon Elastic Compute Cloud]]   * [[https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/amazon-linux-2-virtual-machine.html|Amazon Linux 2를 온프레미스 가상 머신으로 실행 - Amazon Elastic Compute Cloud]]
 +
 +===== Open JDK 설치 =====
 +  * [[https://tecadmin.net/install-java-on-amazon-linux/|How to Install Java 11/8 on Amazon Linux – TecAdmin]]
 +
 +<code sh>
 +# openjdk 11
 +sudo amazon-linux-extras install java-openjdk11
 +
 +# openjdk 8
 +sudo yum install java-1.8.0-openjdk
 +</code>
 +
aws/amazon_linux.txt · 마지막으로 수정됨: 2021/11/17 10:03 저자 kwon37xi