Linux – Clear content of a file
This is useful for me when editing my ip ban script. I use the same text file to ban ip´s and sometimes that file is pretty big….
Iptables – Block Ip’s
If you have gone through your logs, you will most likely find a lot of login attempts on ssh port. And probably some on the apache service….
Debian – Make iptables restore on boot, or save persistant
Here is how to save your iptables config and make it stick even after a reboot. There is two ways of doing this (at least). We will…
Debian/Ubuntu – Use RSA certificate with Putty
Here is how to connect to a Debian based server using RSA certificate with Putty. First thing you need is to download Puttygen, and you will find…
Debian 7 – How to install Teamspeak 3 with autostart
Teamspeak 3 server with autostart Here is a short description on how to install Teamspeak 3 in a safe manner on a Debian server. And how to auto…
SSH – Connect to SSH with RSA certificate
Using RSA certificate will increase your account/server security. You can configure SSH server to only accept RSA certificate for your root user. Here is how to use…
Linux – SCP to download, upload or copy files
With several Linux computers or servers it can be useful or practical to copy files from one computer to another from the terminal directly. We use a…
SSH – See login attempts
The SSH log file is located here (on Debian based systems): /var/log/auth.log And to view it, just type (need root or sudo): cat /var/log/auth.log This file most…
Debian/Ubuntu – Give user admin rights (Add to sudo)
For security reason, and others, it is a good idea to use another user than root. There is several ways of doing this. On a Debian system…
Linux – How to kick SSH users
This can be useful if a connection get stuck, or you see a suspicious IP of your users. If you run w or who you will see you…