Mount a ssh filesystem under Linux or How I mounted my webspace into my root server

Today I had to mount a ssh filesystem under Linux. The reason was, that I had the perception that I would be a very cool idea, to use my old webspace package from, that I only kept because of the 10 included domains, as a backup storage for my root server. The plan was […]

Rename multiple files on shell

To rename multiple files in the current folder, you can use the following command:

In this case, I had a bunch of files that I had to rename temporarily. They all started with Scheldon_ and had the fileending .xml. The snippets above first rename these files to Scheldon_SOMEWHAT.xml_bkp and then back to the original name Scheldon_SOMEWHAT.xml.

Download password protected file over shell

Therefore we use wget:

If you let -O param out the output will be stored under its original name.

Download or upload a file over SSH

You can add a port with the -P param You can do it recursive with the -r param HINT: If you got an “Too many authentication failures for X” errror, you can add the param -o PubkeyAuthentication=no . If you couldn’t  authenticate via ssh key,  you can use sshpass to authenticate via password: