Archive for the Linux Category

Fix Amazon EC2 SSH login

| November 20th, 2016
Blocked myself with CSF firewall on a Centos 7 server. With the "Run Command" feature was not available, and no web terminal or VNC console such as the one in digitalocean(https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-console-to-access-your-droplet). After reading around I found out that the only solution is to stop the running instance, detach the volume, create another Linux instance (shouldn't be the same as the running one), then attach the old volume to the newly Read more [...]

Install SSMTP on Centos 7

| August 31st, 2016
Add the repo if it's not added: wget -c https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm rpm -ivh epel-release-7-8.noarch.rpm update: wget -c https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm rpm -ivh epel-release-7-9.noarch.rpm Install: yum -y install ssmtp (yum install mailx) if not installed Configure: alternatives --config mta   There are 2 programs which provide 'mta'. Selection Command ----------------------------------------------- *+ Read more [...]

The article:

http://tohamey.blogspot.com/2011/10/configuring-linux-dhcp-to-work-with.html