下記の通り設定する
①sshd_configは残して下記を追加する。
②ルータの22番ポート(TCPIP)を閉じる。
※外部からは、port62222 でSSH接続が可能。
※内部からは、今まで通り port22 で入れます。
★etc/sshd_config.x
# This is ssh server systemwide configuration file.
##Port 22
Port 62222
ListenAddress 0.0.0.0
HostKey /etc/ssh_host_key
RandomSeed /etc/ssh_random_seed
★etc/inetd.conf
ssh       stream  tcp     nowait        root /usr/sbin/tcpd /usr/local/sbin/sshd -i
sshdx     stream  tcp     nowait        root /usr/sbin/tcpd /usr/local/sbin/sshd -i -f /et
c/sshd_config.x
★/etc/services
vboxd           20012/tcp                       # voice box system
vboxd           20012/udp                       # voice box system
binkp           24554/tcp                       # Binkley
binkp           24554/udp                       # Binkley
asp             27374/tcp                       # Address Search Protocol
asp             27374/udp                       # Address Search Protocol
tfido           60177/tcp                       # Ifmail
tfido           60177/udp                       # Ifmail
fido            60179/tcp                       # Ifmail
fido            60179/udp                       # Ifmail
###### 2015-04-22 sshd port
sshdx           62222/tcp                       # sshd port x
######
# Local services
0 件のコメント:
コメントを投稿
注: コメントを投稿できるのは、このブログのメンバーだけです。