[ ¿ìºÐÅõ - ssh ] root·Î Á÷Á¢ Á¢¼Ó ÇÒ ¼ö´Â ¾ø´ÂÁö¿ä ?
Àü¼³¼ÓÀǹ̡¦ 2015-07 2015-07-17 19:44:03 Á¶È¸ 5332 Ãßõ 0
±×·±µ¥ ssh¿¡¼ ±»ÀÌ root Á¢¼ÓÀ» ÇϽ÷Á´Â ÀÌÀ¯°¡?
±»ÀÌ root°¡ ÇÊ¿äÇÏ´Ù¸é passwd ¼³Á¤, securetty ¼öÁ¤, sshd_config¿¡ permitrootlogin¸¦ ÁöÁ¤ÇÏ½Ã¸é µË´Ï´Ù.
°ø°³Å°ÀÎÁõÀÏ ¶§µµ ÀϹݰèÁ¤À̶û ¸¶Âù°¡Áö·Î root°èÁ¤ ¾Æ·¡¿¡ authorized_keys Ãß°¡ÇÏ¸é ¶È°°ÀÌ Á¢¼ÓµË´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
Â÷¶ó¸® ±»ÀÌ ¾²¼Å¾ß°ÚÀ¸¸é
ÀϹÝÀ¯Àú·Î Á¢¼ÓÈÄ
sudo -s Çϼ¼¿ä...
# ÀÌ°ÍÀº root ·Î±×ÀÎÀ» È°¼ºÈ ½ÃÅ°´Â ¹æ¹ý...
PermitRootLogin yes
¶Ç´Â
#StrictModes yes
¶ó°í µÇ¾î ÀÖ´Â ÁÙÀ» ÁÖ¼® ó¸® Çϼŵµ µÈ´Ù´Â ½äÀÌ Àִµ¥ ±×¸® ½áº¸Áö´Â ¾Ê¾Ò½À´Ï´Ù...
±×¸®°í ssh ¸¦ ´Ù½Ã ½ÃÀÛÇØ ÁÖ¼¼¿ä~
service ssh restart
¶Ç´Â
service ssh reload
À§¿¡ ´Ù¸¥ºÐµé ¸»¾¸Ã³·³ Ưº°ÇÑ ÀÌÀ¯°¡ ÀÖÁö ¾ÊÀ¸¸é ¿ÏÁ¯ ºñÃßÀÔ´Ï´Ù... sudo ¸¦ ¾²½Ã´Â°ÍÀÌ Á¤´äÀÌÁÒ...
root ·Î Á÷Á¢ Á¢¼ÓÇÒ¼ö ÀÖµµ·Ï ¿¾î ³ù´Ù°£ ¸îÀÏ ¹öƼÁöµµ ¸øÇÏ°í Áß±¹ÇØÄ¿µé¿¡°Ô ´Ù Åи³´Ï´Ù.
Åи®¸é ¾Æ½ÃÁÒ? ¾î¶² ¾Ç¼ºÄڵ峪 ÇØÅ·ÅøÀÌ ±ò·È´ÂÁö ¸ç´À¸®µµ ¸ð¸¨´Ï´Ù. OS´Ù½Ã ±ò¾Æ¾ßÁÒ.
1. Æ÷Æ® º¯°æ
2. ºñ¹Ð¹øÈ£ ·Î±×ÀÎ ±ÝÁöÇÏ°í °ø°³Å° ·Î±×Àθ¸ Çã°¡
¹°·Ð OpenSSH¿¡ Ãë¾àÁ¡ ÀÖÀ¸¸é Åи®±â¾ß ÇÏ°Ú½À´Ï´Ù¸¸...
¸¹Àº µµ¿òÀÌ µÇ¾ú½À´Ï´Ù.