Tag Archives: linux

Linux: Move a process from fore- to background

Hi,

bash offers the ability to move a running foreground process into background.

An example 🙂 Listen with netcat at tcp port 80, this process to not exit and stays in foreground.

root@debdev:~# nc -l -t -p 80 -s 10.254.1.1

Now I want to do some other things in this console.
Continue reading Linux: Move a process from fore- to background

Advertisment to support michlstechblog.info

Linux: Configure a tiny DHCP Server

Hi,

the best choice to setup a very tiny dhcp server on linux is the busybox udhcpd DHCP implemention.


root@debdev:~# apt-get install udhcpd

Continue reading Linux: Configure a tiny DHCP Server

Linux: Regenerate sshd host keys

Hi,

to generate sshd host keys, for example in case of cloning a virtual linux instance, do the following steps:

Checkout the key file names

root@debdevt:~# grep HostKey /etc/ssh/sshd_config
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key

Continue reading Linux: Regenerate sshd host keys

Linux: Creating a ssh keypair with puttygen

Hi,

use the following steps to create a ssh key pair with puttygen and import the public key on a linux hosts.

Start puttygen and generate an 4096 Bit RSA Key.

Generate an 4096Bit RSA Key
Generate an 4096Bit RSA Key

Set a strong password and save it (D:\temp\private.ppk in this example) at a secure location.
Continue reading Linux: Creating a ssh keypair with puttygen

Debian Linux: Define a system wide HTTP proxy

Hi,

to define a system wide HTTP proxy edit /etc/environment with your favourite text editor and insert the following lines
Continue reading Debian Linux: Define a system wide HTTP proxy