SSH is mainly used in Linux Operating Systems , SSH is used to connect a PC at a Remote location with Secure connection and using SSH you can use that PC like a Remote Control. Like Controlling your Server (VPS or Dedicated with having root access).
Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. The two major versions of the protocol are referred to as SSH1 or SSH-1 and SSH2 or SSH-2. Used primarily on Linux and Unix based systems to access shell accounts, SSH was designed as a replacement for Telnet and other insecure remote shells, which send information, notably passwords, in plaintext, rendering them susceptible to packet analysis.The encryption used by SSH is intended to provide confidentiality and integrity of data over an unsecured network, such as the Internet.
(Source Wikipedia)
The Default port for the SSH user is 22. But we can change the default port to some other port (its Good for Security). for example if i wanted to run ssh at port 1090 instead of 22.
Edit the Following File for changing the default port of SSH :
/etc/ssh/ssh_config |
if you are changing it for your server using PuTTy or any other similar tool then use following command :
vi /etc/ssh/ssh_config |
Their you can find for Some text like :
# Port 22 |
or
Port 22 |
Just change the 22 to the port you wanted to change for me it will be then
Port 1090 |
and if your file is having Port commented then uncomment it by removing # before the Port
and Save it
Now you have Successfully change the Default SSH Port
Note : You can Run SSH on any port but make sure that no other Service is using that port
You can Get PuTTy Here
Hope you like it.
Ritesh Sanap says
Save file by pressing
esc
and after that typing:w
and pressenter