sshdの待ち受けポートを変更する

デフォルトのポート番号ではどこからか辞書攻撃されるのでsshdの待ち受けポート番号を変更する。

FreeBSDではsshdの設定は /etc/ssh/sshd_config に記述する。

Port 22

となっているところを、任意のポート番号に変更すればよい。

その後、

# /etc/rc.d/sshd restart

として、sshdを再起動する。

Leave a Reply

Your email address will not be published. Required fields are marked *

*