Restrict root ssh access to a single IP under Raspbian / Debian / Ubuntu
Today I configured a new backup solution that required me to restrict root ssh access to a single IP for the root user.
Today I configured a new backup solution that required me to restrict root ssh access to a single IP for the root user.
Just found this interesting overview about bash text formatting and colorization possibilities on Linux bash shells and want to share it with me and my beloved audience ;-): Link:Â https://misc.flogisoft.com/bash/tip_colors_and_formatting As PDF:
This little tutorial shows, how to disable touchpad under Ubuntu (v. 16.04) permanently. The reason is, that I generally use only the red trackpoint of my Lenovo T530 as a pointing device. I don’t need a touchpad anyway. But when working with the trackpoint, I accidentally touch the touchpad with my thumbs many times. That […]
This is how to wipe a disk via Linux shell: $> sudo shred -v -n2 -z /dev/sdc The command above erases all data on the device /dev/sdc and overrides the data 2Â times. Finally every bit is overridden by zeros. So in sum it takes 3 iterations to wipe a disk via Linux shell. n specifies […]
Today I had to regain access to the admin panel of one of my root servers that uses Plesk as administrative panel. I had configured a IP restriction for the panel under Tools and Settings > Restrict Administrative Access. The problem was, that I wanted to access the machine from outside of the company network (my […]
To find out which encoding a certain file has, you can use the file command on Linux shell: $> file -i path_to_encoded_file.ending Output example: path_to_encoded_file.ending: text/plain; charset=iso-8859-1
Today I ran into a still open bug of ISPConfig (ISPConfig 3.1.3 under Debian Jessie). The problem occurred, when I tried to clone a BitBucket repository with a non root SSH-user in his own website root (where permission rights generally should be no problem). Hence I wanted to use key-based authentication for BitBucket, I generated […]
Recently I tried to remove a big bunch of files from one of my raspberry pies where ffmpeg had swamped my SD-card with too many capture images. So I had to delete x files from folder. I just tried: rm -rf *.jpg But that gave me an “unable to execute /bin/rm: Argument list too long” […]
Today I wanted to setup monit behind Apache proxy on my webserver, which runs ISPConfig (https://www.ispconfig.org/) under Debian. Monit is a OpenSource monitoring tool for Linux (see https://mmonit.com/monit/). Requirements I had the following requirements on the solution: monit should only be accessible from the server itself (localhost) monit should run under a special SSL-secured URL (not IP:PORT as […]
To rename multiple files in the current folder, you can use the following command: $> # rename: $> for f in Sheldon_*.xml; do mv -n “$f” “${f}_bkp”; done $> # rename it back again: $> for f in Sheldon_*.xml_bkp; do mv -n “$f” “${f/_bkp}”; done In this case, I had a bunch of files that […]