๐Ÿค ์€์ง€log ๐Ÿค

[CI/CD study] - 2. SSH Client Tool์„ ์ด์šฉํ•ด EC2 ์ธ์Šคํ„ด์Šค ์ ‘์† ๋ณธ๋ฌธ

๐Ÿ’š DevOps

[CI/CD study] - 2. SSH Client Tool์„ ์ด์šฉํ•ด EC2 ์ธ์Šคํ„ด์Šค ์ ‘์†

Eun_zii 2022. 10. 4. 12:20

 

 

[CI/CD study] - 1. AWS EC2 ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ

AWS ๊ฐ€์ž… : https://aws.amazon.com/ko/ ํด๋ผ์šฐ๋“œ ์„œ๋น„์Šค | ํด๋ผ์šฐ๋“œ ์ปดํ“จํŒ… ์†”๋ฃจ์…˜| Amazon Web Services ๊ฐœ๋ฐœ์ž, ๋ฐ์ดํ„ฐ ์‚ฌ์ด์–ธํ‹ฐ์ŠคํŠธ, ์†”๋ฃจ์…˜์Šค ์•„ํ‚คํ…ํŠธ ๋˜๋Š” AWS์—์„œ ๊ตฌ์ถ•ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๋ฐฐ์šฐ๋Š” ๋ฐ ๊ด€์‹ฌ์ด ์žˆ๋Š”

eun-jii.tistory.com

โ˜‘๏ธ ์ธ์Šคํ„ด์Šค ์ƒ์„ฑํ•˜์ง€ ์•Š์œผ์‹  ๋ถ„๋“ค์€ ์ „ ๊ธ€์„ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š” โ˜‘๏ธ

 

 

ํŽธ๋ฆฌํ•˜๊ฒŒ ์ธ์Šคํ„ด์Šค ์ ‘์†ํ•˜๋ ค๋ฉด SSH Client Tool ์ด์šฉ

* ๋‹ค์–‘ํ•œ tool์ด ์žˆ๊ธฐ๋•Œ๋ฌธ์— ์ž์‹ ์—๊ฒŒ ๋งž๋Š”๊ฒƒ์„ ์„ ํƒํ•˜๋ฉด ๋จ ( ๋‚ด๊ฐ€ ์‚ฌ์šฉํ•œ Tool )

 

Termius for macOS | Download

- Split view. You can open up to 4 terminals inside a single tab. - Enterprise SSO. Termius supports more than 30 identity providers.

termius.com

 

 

 

 

 

์„ค์น˜ํ›„, ํ™ˆํ™”๋ฉด์— Add โžก New Host

 

 

์„œ๋ฒ„์ด๋ฆ„(=Label) ์ž…๋ ฅํ›„ ,

Adress ์นธ์— Ec2 ์ธ์Šคํ„ด์Šค Public IP4 ์ฃผ์†Œ ์ž…๋ ฅ (์ƒ์„ฑ๋œ AWS ์ธ์Šคํ„ด์Šค์—์„œ ํ™•์ธ ๊ฐ€๋Šฅ)

 

 

EC2 ์ธ์Šคํ„ด์Šค๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ " ec2-user " ์ด๋ผ๋Š” ๊ณ„์ •์ด ๋งŒ๋“ค์–ด ์ง€๊ณ 

๋กœ๊ทธ์ธ ๋ฐฉ์‹์€ ID,PW๊ฐ€ ์•„๋‹Œ KEY (EC2 ํ‚คํŽ˜์–ดํ• ๋•Œ ๋ฐ›์€ .pemํŒŒ์ผ) ๋กœ ๋กœ๊ทธ์ธ์„ ํ•จ

 

 

Password ์˜† Keys ํด๋ฆญํ›„ ๋“ฑ๋กํ‚ค๊ฐ€ ์—†๋‹ค๋ฉด " create a new key "
โžก ์ด๋ฆ„ ๋“ฑ๋กํ›„ Drag & Drop ๋˜๋Š” import from keyfile ๋กœ KEY-file(EC2 ํ‚คํŽ˜์–ดํ• ๋•Œ ๋ฐ›์€ .pemํŒŒ์ผ) ๊ฐ€์ ธ์˜ค๊ธฐ
โžก (์•”ํ˜ธํ™”๋œ ํŒŒ์ผ์ด ์—ด๋ ธ๋‹ค๋ฉด) ์˜ค๋ฅธ์ชฝ ์ƒ๋‹จ save

 

 

์ธ์Šคํ„ด์Šค ์ ‘์† ์™„๋ฃŒ

 

 

โค๏ธ ๋„์›€์ฃผ์‹ ๋ถ„ : 

https://junyharang.tistory.com/339

https://code00.tistory.com/114?category=967515

728x90