1단계: EC2 보안 그룹 및 DB 권한 확인1. Security Group(SG) 22(SSH) 인바운드 규칙 열기2. EC2 접근을 위한 pem키 설정2단계: DataGrip에서 SSH 설정SSH configuration 클릭Host: EC2 퍼블릭 or DNS 주소Port: 22Username: EC2 OS 사용자 이름(예: ubuntu)Authetication type: Key pairPrivate Key file: /~~주소~~~/~~.pem3단계: Database 접속 정보 입력다시 General 탭으로 돌아오기(이제부터는 Host를 EC2 내부의 시점으로, SSH 터널을 통과한 후에는 EC2 자신이 기준이 된다.)Host: localhostPort: DB 기본 포트username: cowee..