# Setting(SpringBoot)

# 1. EC2 CentOS 7 ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ

chmod 400 awskey.pem
ssh -i "awskey.pem" centos@ec2-000-000-000-000.ap-northeast-2.compute.amazonaws.com

# 2. pem key ์—†์ด ์ ‘์†

sudo adduser testuser
sudo passwd testuser

sudo chmod u+w /etc/sudoers # ํŒŒ์ผ ๊ถŒํ•œ ๋ณ€๊ฒฝ

sudo vi /etc/sudoers # ํŒŒ์ผ ์ ‘๊ทผ

--- sudoers ์„ค์ • ์ถ”๊ฐ€
"์œ ์ €๋ช…" ALL=(ALL:ALL) ALL
---

sudo vi /etc/ssh/sshd_config

--- sshd_config ์„ค์ • ๋ณ€๊ฒฝ
PasswordAuthentication yes
---

sudo service sshd restart


ssh "์œ ์ €๋ช…"@"IP"
ssh testuser@000.000.000.000

# AWS EC2 ์ ‘๊ทผ console์—์„œ ์ ‘๊ทผ

์›ํ•˜๋Š” ์ธ์Šคํ„ด์Šค ์„ ํƒ > ์šฐ์ธก๋งˆ์šฐ์Šค > ์—ฐ๊ฒฐ ํด๋ฆญ > Session Manager์—์„œ ์—ฐ๊ฒฐ ํด๋ฆญ

sh-4.2$ sudo su

# Access Key, Secret Key ์ƒ์„ฑ

IAM > ์‚ฌ์šฉ์ž > S3AccessKeyOnly > ์—‘์„ธ์Šค ํ‚ค ๋งŒ๋“ค๊ธฐ

# References

https://wooono.tistory.com/371

# AWS ์ธ์ฆ์„œ ๋ณ€๊ฒฝ์ž‘์—…์ค‘ ์ด์Šˆ (SSL)

# ์ธ์ฆ์„œ ์ •์ƒ์—ฌ๋ถ€ ํ™•์ธ
https://www.digicert.com/help/
# ๋น„์Šทํ•œ ์˜ค๋ฅ˜ ์ด์Šˆ
http://www.kunwi.co.kr/gunwi/board.php?bo_table=os&wr_id=184

Last Updated: 4/13/2025, 11:14:44 PM