Ubuntu์—์„œ SSH ์ ‘์†์ด ๋งค์šฐ ๋Š๋ฆฝ๋‹ˆ๋‹ค.

ํ˜„์ƒ


Ubuntu 9.x, 10.x์—์„œ SSH ์ ‘์†์„ ํ•  ๊ฒฝ์šฐ ์ธ์ฆ๊ณผ์ •์„ ๊ฑฐ์นœ ํ›„ ์…ธ ํ”„๋กฌํ”„ํŠธ๊ฐ€ ๋‚˜์˜ค๊ธฐ๊นŒ์ง€ ์‹œ๊ฐ„์ด ๋„ˆ๋ฌด ์˜ค๋ž˜ ๊ฑธ๋ฆฝ๋‹ˆ๋‹ค.



์›์ธ ๋ฐ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•


์šฐ๋ถ„ํˆฌ์˜ SSH ์„œ๋ฒ„๊ฐ€ ์‚ฌ์šฉ์ž ์ธ์ฆ์„ ํ•˜๊ธฐ ์œ„ํ•ด PAM์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ์ด PAM์— ๋ฌธ์ œ๊ฐ€ ์žˆ๊ฑฐ๋‚˜ ์„ค์ •์ด ์ œ๋Œ€๋กœ ์ด๋ฃจ์–ด์ง€์ง€ ์•Š์€ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. 
๊ทธ๋Ÿฌ๋ฏ€๋กœ ์ด ๋ฌธ์ œ๋Š” ์ €ํฌ Xshell ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ๋กœ์ปฌ์—์„œ๋„ ssh๋กœ ์ ‘์†ํ•  ๋•Œ์—๋„ ๋ฐœ์ƒํ•˜๋Š” ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค.

PAM๊ณผ ๊ด€๋ จํ•˜์—ฌ ์–ด๋–ค ๋ถ€๋ถ„์— ๋ฌธ์ œ๊ฐ€ ์žˆ๋Š”์ง€๋Š” ๋” ์ฐพ์•„ ๋ด์•ผ ํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

์šฐ์„ ์€ /etc/ssh/sshd_config ํŒŒ์ผ์—์„œ "UsePAM yes"์œผ๋กœ ๋œ ๋ถ€๋ถ„์„ ์ฐพ์•„์„œ ์ฃผ์„ ์ฒ˜๋ฆฌํ•˜์‹  ํ›„ SSH๋ฅผ ์žฌ๊ธฐ๋™ํ•ด ๋ณด์‹ญ์‹œ์˜ค.(์žฌ๋ถ€ํŒ…์„ ๊ถŒํ•ฉ๋‹ˆ๋‹ค.)