¼³¹®Á¶»ç (200 point Àû¸³)
°ü½ÉÁ¾¸ñÀº..?

 
   
¿ìºÐÅõ óÀ½¼³Ä¡ÇÏ°í ...
±Û¾´ÀÌ : ÄÚÄÚ¾Æ ³¯Â¥ : 09-02-24 13:18 Á¶È¸ : 5143 Ãßõ : 0
asd@asd-desktop:~$ sudo passwd root
[sudo] password for asd:
Enter new UNIX password:
Retype new UNIX password:
passwd: ¾ÏÈ£¸¦ ¼º°øÀûÀ¸·Î ¾÷µ¥ÀÌÆ®Çß½À´Ï´Ù
asd@asd-desktop:~$ su -
Password:
root@asd-desktop:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:29:5b:f9:a2 
          inet addr:192.168.123.106  Bcast:192.168.123.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe5b:f9a2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:31 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7878 (7.8 KB)  TX bytes:6695 (6.6 KB)
          Interrupt:18 Base address:0x2000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:74 errors:0 dropped:0 overruns:0 frame:0
          TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3692 (3.6 KB)  TX bytes:3692 (3.6 KB)

root@asd-desktop:~# sudo apt-get install ssh
²Ù·¯¹Ì ¸ñ·ÏÀ» Àд ÁßÀÔ´Ï´Ù... ¿Ï·á
ÀÇÁ¸¼º Æ®¸®¸¦ ¸¸µå´Â ÁßÀÔ´Ï´Ù     
»óÅ Á¤º¸¸¦ Àд ÁßÀÔ´Ï´Ù... ¿Ï·á
´ÙÀ½ »õ ²Ù·¯¹Ì°¡ Àü¿¡ ÀÚµ¿À¸·Î ¼³Ä¡µÇ¾úÁö¸¸ ´õ ÀÌ»ó ÇÊ¿äÇÏÁö ¾Ê½À´Ï´Ù:
  linux-headers-2.6.27-7 linux-headers-2.6.27-7-generic
À̵éÀ» Áö¿ì±â À§Çؼ­´Â 'apt-get autoremove'¸¦ »ç¿ëÇϽʽÿÀ.
´ÙÀ½ ²Ù·¯¹Ì¸¦ ´õ ¼³Ä¡ÇÒ °ÍÀÔ´Ï´Ù:
  openssh-server
Á¦¾ÈÇÏ´Â ²Ù·¯¹Ì:
  rssh molly-guard openssh-blacklist openssh-blacklist-extra
´ÙÀ½ »õ ²Ù·¯¹Ì¸¦ ¼³Ä¡ÇÒ °ÍÀÔ´Ï´Ù:
  openssh-server ssh
0°³ ¾÷±×·¹À̵å, 2°³ »õ·Î ¼³Ä¡, 0°³ Áö¿ì±â ¹× 0°³ ¾÷±×·¹ÀÌµå ¾È ÇÔ.
286k¹ÙÀÌÆ® ¾ÆÄ«À̺긦 ¹Þ¾Æ¾ß ÇÕ´Ï´Ù.
ÀÌ ÀÛ¾÷ ÈÄ 827k¹ÙÀÌÆ®ÀÇ µð½ºÅ© °ø°£À» ´õ »ç¿ëÇÏ°Ô µË´Ï´Ù.
°è¼Ó ÇϽðڽÀ´Ï±î [Y/n]? y
¹Þ±â:1 http://kr.archive.ubuntu.com intrepid/main openssh-server 1:5.1p1-3ubuntu1 [285kB]
¹Þ±â:2 http://kr.archive.ubuntu.com intrepid/main ssh 1:5.1p1-3ubuntu1 [1246B]
³»·Á¹Þ±â 286k¹ÙÀÌÆ®, ¼Ò¿ä½Ã°£ 0s (373k¹ÙÀÌÆ®/ÃÊ)
ÆÐÅ°Áö¸¦ ¹Ì¸® ¼³Á¤ÇÏ´Â ÁßÀÔ´Ï´Ù...
Àü¿¡ ¼±ÅÃÇÏÁö ¾ÊÀº openssh-server ÆÐÅ°Áö¸¦ ¼±ÅÃÇÕ´Ï´Ù.
(µ¥ÀÌÅͺ£À̽º ÀдÂÁß ...ÇöÀç 116609°³ÀÇ ÆÄÀÏ°ú µð·ºÅ丮°¡ ¼³Ä¡µÇ¾î ÀÖ½À´Ï´Ù.)
openssh-server ÆÐÅ°Áö¸¦ Ǫ´Â ÁßÀÔ´Ï´Ù (.../openssh-server_1%3a5.1p1-3ubuntu1_i386.deb¿¡¼­) ...
Àü¿¡ ¼±ÅÃÇÏÁö ¾ÊÀº ssh ÆÐÅ°Áö¸¦ ¼±ÅÃÇÕ´Ï´Ù.
ssh ÆÐÅ°Áö¸¦ Ǫ´Â ÁßÀÔ´Ï´Ù (.../ssh_1%3a5.1p1-3ubuntu1_all.deb¿¡¼­) ...
Processing triggers for ufw ...
Processing triggers for man-db ...
openssh-server (1:5.1p1-3ubuntu1) ¼³Á¤ÇÏ´Â ÁßÀÔ´Ï´Ù ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
 * Restarting OpenBSD Secure Shell server sshd                          [ OK ]

ssh (1:5.1p1-3ubuntu1) ¼³Á¤ÇÏ´Â ÁßÀÔ´Ï´Ù ...

root@asd-desktop:~# sudo apt-get install vim
²Ù·¯¹Ì ¸ñ·ÏÀ» Àд ÁßÀÔ´Ï´Ù... ¿Ï·á
ÀÇÁ¸¼º Æ®¸®¸¦ ¸¸µå´Â ÁßÀÔ´Ï´Ù     
»óÅ Á¤º¸¸¦ Àд ÁßÀÔ´Ï´Ù... ¿Ï·á
´ÙÀ½ »õ ²Ù·¯¹Ì°¡ Àü¿¡ ÀÚµ¿À¸·Î ¼³Ä¡µÇ¾úÁö¸¸ ´õ ÀÌ»ó ÇÊ¿äÇÏÁö ¾Ê½À´Ï´Ù:
  linux-headers-2.6.27-7 linux-headers-2.6.27-7-generic
À̵éÀ» Áö¿ì±â À§Çؼ­´Â 'apt-get autoremove'¸¦ »ç¿ëÇϽʽÿÀ.
´ÙÀ½ ²Ù·¯¹Ì¸¦ ´õ ¼³Ä¡ÇÒ °ÍÀÔ´Ï´Ù:
  vim-runtime
Á¦¾ÈÇÏ´Â ²Ù·¯¹Ì:
  ctags vim-doc vim-scripts
´ÙÀ½ »õ ²Ù·¯¹Ì¸¦ ¼³Ä¡ÇÒ °ÍÀÔ´Ï´Ù:
  vim vim-runtime
0°³ ¾÷±×·¹À̵å, 2°³ »õ·Î ¼³Ä¡, 0°³ Áö¿ì±â ¹× 0°³ ¾÷±×·¹ÀÌµå ¾È ÇÔ.
6262k¹ÙÀÌÆ® ¾ÆÄ«À̺긦 ¹Þ¾Æ¾ß ÇÕ´Ï´Ù.
ÀÌ ÀÛ¾÷ ÈÄ 25.1M¹ÙÀÌÆ®ÀÇ µð½ºÅ© °ø°£À» ´õ »ç¿ëÇÏ°Ô µË´Ï´Ù.
°è¼Ó ÇϽðڽÀ´Ï±î [Y/n]? y
¹Þ±â:1 http://kr.archive.ubuntu.com intrepid-updates/main vim-runtime 1:7.1.314-3ubuntu3.1 [5417kB]
¹Þ±â:2 http://kr.archive.ubuntu.com intrepid-updates/main vim 1:7.1.314-3ubuntu3.1 [845kB]
³»·Á¹Þ±â 6262k¹ÙÀÌÆ®, ¼Ò¿ä½Ã°£ 1s (3844k¹ÙÀÌÆ®/ÃÊ)
Àü¿¡ ¼±ÅÃÇÏÁö ¾ÊÀº vim-runtime ÆÐÅ°Áö¸¦ ¼±ÅÃÇÕ´Ï´Ù.
(µ¥ÀÌÅͺ£À̽º ÀдÂÁß ...ÇöÀç 116626°³ÀÇ ÆÄÀÏ°ú µð·ºÅ丮°¡ ¼³Ä¡µÇ¾î ÀÖ½À´Ï´Ù.)
vim-runtime ÆÐÅ°Áö¸¦ Ǫ´Â ÁßÀÔ´Ï´Ù (.../vim-runtime_1%3a7.1.314-3ubuntu3.1_all.deb¿¡¼­) ...
'diversion of /usr/share/vim/vim71/doc/help.txt to /usr/share/vim/vim71/doc/help.txt.vim-tiny by vim-runtime' Ãß°¡ÇÏ´Â Áß
'diversion of /usr/share/vim/vim71/doc/tags to /usr/share/vim/vim71/doc/tags.vim-tiny by vim-runtime' Ãß°¡ÇÏ´Â Áß
Àü¿¡ ¼±ÅÃÇÏÁö ¾ÊÀº vim ÆÐÅ°Áö¸¦ ¼±ÅÃÇÕ´Ï´Ù.
vim ÆÐÅ°Áö¸¦ Ǫ´Â ÁßÀÔ´Ï´Ù (.../vim_1%3a7.1.314-3ubuntu3.1_i386.deb¿¡¼­) ...
Processing triggers for man-db ...
vim-runtime (1:7.1.314-3ubuntu3.1) ¼³Á¤ÇÏ´Â ÁßÀÔ´Ï´Ù ...
Processing /usr/share/vim/addons/doc

vim (1:7.1.314-3ubuntu3.1) ¼³Á¤ÇÏ´Â ÁßÀÔ´Ï´Ù ...

root@asd-desktop:~# vi /etc/ssh/sshd_config
root@asd-desktop:~# sudo /etc/init.d/ssh restart
 * Restarting OpenBSD Secure Shell server sshd                          [ OK ]
root@asd-desktop:~# sudo /etc/init.d/ssh restart
 * Restarting OpenBSD Secure Shell server sshd                          [ OK ]

¿ìºÐÅõ¸¦ óÀ½¼³Ä¡ÇÏ°í³ª¼­ ÇØÁØ°ÍÀº root Æнº¿öµå º¯°æ
ssh ¼³Ä¡
vim ¼³Ä¡ ÀÔ´Ï´Ù.
³»¿ëÀº º¸½Ã¸é ¾Ë°Í °°¾Æ¼­ ¿Ã·Áµå¸³´Ï´Ù.

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.