How do I change the terminal access SSH port?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi there,

This is a very basic question so please forgive me since I know very
little regarding configuring SSH.

Currently one can gain remote terminal access into my debian Linux
server using SSH via the default port 22. I would like to change this
to another port (but only for terminal access), lets say, 2222 - so my
users need to set that parameter in their putTY settings on windows.

Could anyone provide the steps for this, which config files to edit,
or a linux HOWTO? I can't seem to find specifically what I'm looking


Re: How do I change the terminal access SSH port?

Quoted text here. Click to load it

You need to edit /etc/ssh/sshd_config and add a 'Port' statement.
Details about the sshd configuration file can be found in
sshd_config(5) (`man sshd_config`).


Site Timeline