How To Change Default SSH Port in Linux, Ubuntu or Centos

How to change the default SSH Port in Linux or Ubuntu which is 22 to increase the security. Just loginto your SSH server using root. Then use some editor like nano or vi to edit the sshd configuration file. Then type nano /etc/ssh/sshd_configYou can use other editor like vi if nano is not installed but working with vi is a little different. If nano is not installed you can install is using yum install nano in CentOS. Now lets save the new port number and exit. Press Ctrl + X Type Y for YES. Don’t change the file name and…

View More How To Change Default SSH Port in Linux, Ubuntu or Centos
CentOS

How To Create A Parition in Linux, CentOs, Ubuntu Using Command Line Interface

First log into your account using root. Then checkout the drives and paritions using the command “lsblk” It will show you the drives begining with the name sda, sdb, sdc and so on. We can see that there is a drive sdb with no partition on it. Just note down the drive “sdb” on which you want to create parition in linux. It will show you the drives begining with the name sda, sdb, sdc and so on. Just note down the drive on which you want to delete the parition in linux. Use the command fdisk to enter in…

View More How To Create A Parition in Linux, CentOs, Ubuntu Using Command Line Interface
CentOS

How to delete a partition in Linux, CentOs, Ubuntu Using Command Line Interface

First log into your account using root. Then checkout the drives and partitions using the command “lsblk” It will show you the drives begining with the name sda, sdb, sdc and so on. Just note down the drive on which you want to delete the parition in linux. Use the command fdisk to enter in that drive as follow: Now type “d” to delete the partition Now Type “w” to write this operations in system and “q” to quit wq Now just reboot and use command lsblk to see that partition has been deleted in linux successfully. You can also…

View More How to delete a partition in Linux, CentOs, Ubuntu Using Command Line Interface