Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 2004 14:08:44 -0500
From:      Bart Silverstrim <>
Subject:   Re: Moving SSH port off of port 22
Message-ID:  <>
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.


Want to link to this message? Use this URL: <>