Moving SSH port off of port 22
Bart Silverstrim
bsilver at chrononomicon.com
Tue Mar 9 11:08:56 PST 2004
On Mar 9, 2004, at 2:01 PM, Jason Halbert wrote:
> Hello All:
>
> I need some help moving SSH off of port 22, preferably onto port 23 and
> disabling telnet. Can I do this just by changing something in
> /etc/services or by means of a firewall? I have a firewall installed
> on
> the box and using NAT with ipfw.
>
If you just want to plain move the SSHD's listening port, there's a
"port" directive in /etc/ssh/sshd_config (default is a commented Port
22) that you can change what port it listens to. Altering that and
restarting the sshd process should have it listen to the new port.
-Bart
More information about the freebsd-questions
mailing list