# 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 :: Á¢±Ù°¡´É
# 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: