Skip to content

Commit

Permalink
Added docs about ssh setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
marcsello committed Jan 31, 2021
1 parent e523f1f commit c210260
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ Built using standard [Debian Live](https://www.debian.org/devel/debian-live/) to

Essentially this is a simple live image, with a selection of administration tools preinstalled. This image can be used to rescue your system, debug hardware issues, or even install Debian with `debootstrap`, from a more friendly interface than Debian installer's rescue mode.

With the included Live SSH Setup tool, Debian Admin CD can be used to bootstrap a managed node with [Ansible](https://www.ansible.com/)! Read more [here](tools.md).

## Tools

Originally, Debian Admin CD was just a basic Debian live CD with a lot of preinstalled packages. But as time went on, a few home-grown tools and scripts were added to make Debian Admin CD suitable for even more tasks!

Tools currently included:
- **Live SSH setup** Preconfigure an SSH server even from the kernel commandline (Useful for PXE booting)


Detailed description about the included tools/scripts can be found [here](tools.md).

## Building Debian Admin CD
Building Debian Admin CD is easy as pie!
Expand Down
44 changes: 44 additions & 0 deletions tools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Debian Admin CD Tools
Tools developed by the Debian Admin CD project

## Setup Live SSH Server
The Debian Admin CD includes a setup script that helps setting up an SSH server on the live system.

The packages required to install a OpenSSH server are built into the live image, and are being installed during boot.
This ensure that the server can be installed without internet access. And it won't be there if it's not needed.

### Setup the SSH server

The Live SSH server can be set up in two ways:
- Kernel cmdline parameters (Useful for PXE booting).
- Manually using the `setup-live-ssh-server` command after the system booted.


#### Kernel cmdline parameters

The following parameters can be provided to the kernel commandline to configure the SSH server:

```
withssh Enable Live SSH server with default settings
withssh.nopw Do not configure root password (Same as -P)
withssh.pw=PASSWORD Use PASSWORD instead of a generated one (Same as -p)
withssh.key=URL Download and install SSH public key from URL (Same as -k)
```


More than one parameters can be used at the same time.
If none of the parameters above supplied, the ssh server won't be installed and configured during boot time.

#### Command line parameters

The follwoings are the output of the `setup-live-ssh-server --help` command:

```
-q Do not print connection details when the script finishes
-m Do not append connection details to /etc/motd
-k URL Download and install SSH public key from URL
-p PASSOWRD Use PASSWORD instead of a generated one
-P Do not configure root password (login only via key)
-S Do not start/restart the systemd service (have to restart manually)
-h/--help This help
```

0 comments on commit c210260

Please sign in to comment.