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
Create a RAID array using with mdadm November 23, 2023 mdadm (multiple devices admin) is an extremely useful tool for running RAID systems. It’s is a tool for creating, managing, and monitoring RAID devices using the md driver. It can be used as a replacement for the raidtools, or as a supplement. You can use whole disks (/dev/sdb, /dev/sdc) or individual partitions… Read More
Enable mod_rewrite on Apache for Debian September 8, 2015 To enable and load mod_rewrite, do the following. $ sudo a2enmod rewrite Then open up the following file, and replace every occurrence of “AllowOverride None” with “AllowOverride all”. $ sudo vi /etc/apache2/sites-available/default or $ sudo vi /etc/apache2/sites-available/000-default Finally, restart Apache2. $ sudo service apache2 restart Related Read More
Installing Transmission Torrent Client on Debian June 10, 2020 Install transmission sudo apt-get install transmission-cli transmission-common transmission-daemon Configure There are many settings which can be configured. This how-to focus on tweaking the default configuration file for use with Debian/Ubuntu server. transmission-daemon will start automatically each time you start your server, with the settings defined in /var/lib/transmission-daemon/info/settings.json Make sure the… Read More