March 18, 2011

change ssh port freebsd

It's a very good idea to change the default SSH port on working ("production") system. Especially if you enabled root login.

In order to do this, open the /etc/ssh/sshd_config file for editing and uncomment and change the Port directive:
Port 12345

Then restart sshd:
/etc/rc.d/sshd restart


www.freebsdblog.org/77/change-sshd-port/

No comments: