Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 2004 14:08:44 -0500
From:      Bart Silverstrim <bsilver@chrononomicon.com>
To:        questions@FreeBSD.org
Subject:   Re: Moving SSH port off of port 22
Message-ID:  <2F3FDEBE-71FD-11D8-8002-000A956D2452@chrononomicon.com>
In-Reply-To: <000001c40608$f5c59c10$117869a8@red>
References:  <000001c40608$f5c59c10$117869a8@red>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2F3FDEBE-71FD-11D8-8002-000A956D2452>