Reinstall OpenSSH Server Rumi, June 21, 2014 First if you have any pre-installed SSH server that has gone bad, remove it- on Redhat Architechture Type the following commands as the root user: # chkconfig sshd off # service sshd stop # yum erase openssh-server You need to edit and update firewall rules that allows inbound connections to SSHs tcp port # 22. Edit /etc/sysconfig/iptables and /etc/sysconfig/ip6tables. In each file find and delete the line that access connection to port # 22. A sample entry: -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT Save and close the file. Restart the Linux firewall: # service iptables restart # service ip6tables restart On Debian Architechture Type the following commands: # apt-get –purge remove openssh-server Again, you need to edit and update firewall rules or firewall shell scripts that allows inbound connections to SSHs tcp port # 22. Now it's time to install the SSH package again, reference installation for Redhat Architechture only To install the server and client type: # yum -y install openssh-server openssh-clients Start the service: # chkconfig sshd on # service sshd start Make sure port 22 is opened: # netstat -tulpn | grep :22 Firewall Settings Edit /etc/sysconfig/iptables (IPv4 firewall), # vi /etc/sysconfig/iptables Add the line -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT Src: http://www.cyberciti.biz/faq/howto-unix-linux-remove-delete-opensshd-server/ Related Administrations Configurations (Linux) CentOSDebianSSH
Upgrade Python 2.7 to 3.6 and installing pip on CentOS 7 April 2, 2021 Installing Development Tools Development tools are required for building Python modules. To install the necessary tools and libraries type: sudo yum groupinstall ‘Development Tools’ Enable Software Collections (SCL) Software Collections , also known as SCL is a community project that allows you to build, install, and use multiple versions of… Read More
Installing Laravel 9 with php 8.1 and Apache2 using Ubuntu 22 February 11, 2024 Connect to your ubuntu instance. 1. Install Apache sudo apt update sudo apt install apache2 sudo systemctl status apache2 2. Install PHP 8.1 sudo apt install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt install php8.1 libapache2-mod-php8.1 sudo systemctl restart apache2 3. Install required PHP extensions for Laravel 9 sudo apt install… Read More
Create Customer Linux Distribution October 27, 2012October 27, 2012 Remastersys We’ve previously covered Remastersys. It’s one of a group of tools that create your ISO files using the filesystem on which it’s being run. You essentially clone your current Debian/Ubuntu install and make it into a live CD. This makes it extremely easy to customize every little thing about… Read More