How to uninstall SSH server in Linux Redhat/Ubuntu?
Some times you in order to make your system more secure you want to stop unwanted service and remove them permanently so that your machine is not compromised. Such service include SSH, FTP etc which should be uninstall if they are not used.
In this post we will see how to stop and uninstall SSH server in Redhat based and Ubuntu based machines.
On Redhat based machine:
Step1: Stop SSH service before uninstalling it.
service sshd stop
chkconfig sshd off
Step2: Remove ssh package from the machine by using below yum command.
yum remove openssh-server
or to completely remove the package as well from the machine use below command
yum erase openssh-server
On Ubuntu machines:
Step1: Stop the ssh service before uninstalling it.
service ssh stop
Step2: Uninstalling ssh server package
apt-get –purge remove openssh-server
That’s it your done with stopping and uninstalling SSH server from Linux Redhat/Ubuntu based machines.
Please comment your thoughts on this.
Latest posts by Surendra Anne (see all)
- FREE: JOIN OUR DEVOPS TELEGRAM GROUPS - August 2, 2019
- Review: Whizlabs Practice Tests for AWS Certified Solutions Architect Professional (CSAP) - August 27, 2018
- How to use ohai/chef-shell to get node attributes - July 19, 2018
- wget download a file to a directory in Linux/Unix - June 4, 2018
- GIT: How to compare two GIT branches? - June 3, 2018