๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
IT-Engineering/Mac

mac์—์„œ ssh-key ์ƒ์„ฑํ•˜๊ธฐ(ssh-keygen)

by ๐Ÿงž‍โ™‚๏ธ 2022. 9. 7.
๋ฐ˜์‘ํ˜•

1. ํ„ฐ๋ฏธ๋„์„ ์‹คํ–‰ํ•œ๋‹ค. (์œ„์™€ ๊ฐ™์€ ์•„์ด์ฝ˜)

 

2. ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•œ๋‹ค. (์ด๋ฉ”์ผ ์ฃผ์†Œ๋Š” ๋ณธ์ธ์— ๋งž๊ฒŒ ๋ณ€๊ฒฝ)

ssh-keygen -C "abcd@naver.com"

 

3. ์•„๋ž˜์˜ ๋ฉ”์‹œ์ง€๊ฐ€ ๋‚˜์˜ค๋ฉด Enter๋ฅผ ์ž…๋ ฅํ•œ๋‹ค. (๊ธฐ๋ณธ ๊ฒฝ๋กœ์— ์ €์žฅ, username์€ ์‚ฌ์šฉ์ž ์ด๋ฆ„์— ๋งž๊ฒŒ ๋‚˜์˜ด)

Generating public/private rsa key pair.
Enter file in which to save the key (/Users/username/.ssh/id_rsa):

 

4. ์›ํ•˜๋Š” ๊ณณ์—์„œ public key์ธ ~/.ssh/id_rsa.pub ์„ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค.

 

๋.

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€