reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia
Home >> OS >> Linux >> SSH >>

How to change the port of my SSH connection [1/2]

Type: Code reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia
How to change the port of my SSH connection
Level: Intermediate reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia 
How to change the port of my SSH connection
Date: 2007-Mar-15
How to change the port of my SSH connection
Visited: 2029 times
How to change the port of my SSH connection
Rating: How to change the port of my SSH connection
How to change the port of my SSH connection
Author: Tony Potter
This tutorial will show you how you can change the port of your SSH connection. This will help you to avoid automated brute-force attacks to your server. To make this change we are going to change that editing the settings in 'sshd_config' file.

Most of the attacks are made by bots, not from a real person and they are targeted to the default services ports. When you change the port the shh service won't be attacked by artificial scripts, as it takes to much time the whole ports diapason to be checked.

The tutorial is written for Red Hat Linux like operating systems – Fedora, CentOS etc.

Connect to your server with SSH client . Switch to root and type:

vi /etc/ssh/sshd_config
and you will see the file opened into VIM editor.
The reason why we use VIM is because it is installed on almost all Unix/Linux based operating systems.
To find the port option type:
'Esc' key then ':' and '?Port' and using the 'n' key locate this string:

Port 22

This is the default port number for your SSH.

reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia - How to change the port of my SSH connection [1/2] - reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia

Need a specific tutorial? Do not hesitate and submit a request!
Keywords: remote desktop port  change remote desktop port  rdp port number  remote desktop port number  RDP port  function overloading in c++  change RDP port  exception handling in C++  rdp ports  remote desktop ports  function overloading  remote desktop port change  Trillian webcam  windows remote desktop port  remote desktop change port  exception handling c++  how to change remote desktop port  change remote desktop port number  function overloading c++  check my windows version