¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 1,358°Ç
   
SSH ¸ÖƼÆ÷Æ®
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2014-11-28 (±Ý) 09:18 Á¶È¸ : 5389
±ÛÁÖ¼Ò :
                                
±âº»¼³Á¤

# netstat -anlp |grep LIST |grep :22
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1028/sshd           
tcp        0      0 :::22                       :::*                        LISTEN      1028/sshd    


SSH ¸ÖƼÆ÷Æ® ¼³Á¤
  ¹æ¹ý1) Port ºÎºÐ Ãß°¡
  ¹æ¹ý2) ListenAddress ÁÖ¼Ò¿Í °°ÀÌ »ç¿ë


# netstat -anlp |grep LIST |grep sshd
tcp        0      0 0.0.0.:2222              0.0.0.0:*                   LISTEN      17571/sshd          
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      17571/sshd


°¢ Æ÷Æ®º° LISTEN ÁÖ¼Ò¼³Á¤
# /etc/ssh/sshd_config
ListenAddress 0.0.0.0
ListenAddress 127.0.0.1:2222    ::ÀÚ±â ÀڽŸ¸ 2222¹ø Æ÷Æ® LISTEN

# netstat -anlp |grep LIST |grep sshd
tcp        0      0 127.0.0.1:2222              0.0.0.0:*                   LISTEN      17571/sshd          
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      17571/sshd  


¿ÜºÎ¿¡¼­ Á¢±ÙÈ®ÀÎ
# ssh -lroot 192.168.30.193 -p 2222
ssh: connect to host 192.168.30.193 port 2222: Connection refused

# ssh -lroot 192.168.30.193 -p 22   :: Á¢±Ù°¡´É
root@192.168.30.193's password:


·ÎÄÿ¡¼­ Á¢±ÙÈ®ÀÎ
# ssh -lroot 192.168.30.193 -p 22   :: Á¢±Ù°¡´É

# ssh -lroot 192.168.30.193 -p 2222    :: Listen ÁÖ¼Ò°¡ ¾Æ´Ï±â¿¡ Á¢¼Ó°ÅºÎ
ssh: connect to host 192.168.30.193 port 2222: Connection refused

# ssh -lroot 127.0.0.1 -p 2222    :: Á¢±Ù°¡´É
root@127.0.0.1's password: 

# ssh -lroot localhost -p 2222     :: Á¢±Ù°¡´É
root@localhost's password: 

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

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.