/etc/ssh/sshd_config
vi /etc/ssh/sshd_config
#port 22 아래에 변경하고자 하는 포트 번호를 추가하고 vi 종료후
/etc/rc.d/init.d/sshd stop
/etc/rc.d/init.d/sshd start
++++++++++++++++ 예 시 (sshd_config) ++++++++++++++++++++++++++++
# $OpenBSD: sshd_config,v 1.69 2004/05/23 23:59:53 dtucker Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.
#Port 22
Port 7148
#Protocol 2,1
#ListenAddress 0.0.0.0
#ListenAddress ::
이하 생략....................................................