If you are using VPS server or need remote access to a machine we will probably use SSH (Secure Shell) connection.  Use modern cryptography methods for privacy and protect from an unsecured, unsafe network. The basic SSH secure to do few updates.

Install SSH :

# yum -y install openssh-server openssh-clients

Once installed that package, start and enable on boot,
 
# chkconfig sshd on

# /etc/init.d/sshd start


Change Port Number and Allow User : 

By default SSH connection port number pointing to 2., Open ssh configure file,  change port number, disable direct root login permission and Allow specific Users.

For example, Create a new user BksIhSHLOG,
 
# adduser BksIhSHLOG

# passwd BksIhSHLOG

Changing password for  user BksIhSHLOG.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

Change User permission,
 
# usermod -G wheel BksIhSHLOG

Update in sshd_config file,
 
# /etc/ssh/sshd_config

Port 21298

PermitRootLogin no

AllowUsers BksIhSHLOG


Once you have done all the changes need to restart sshd.
 
# vim /etc/ssh/sshd_config

# /etc/init.d/sshd restart

Stopping sshd:              [  OK  ]
Starting sshd:              [  OK  ]


SSH Login:
 
# ssh -p  21298  BksIhSHLOG@192.168.1.201

Password: