Reference

ssh-server feature

What it does

Dropbear with key logins only, its host key, and the firewall rule for its port.

Use it

Import it from (vessel system features ssh). This part of a system configuration uses it:

Example: feature-ssh-server-example

(import (vessel system)
        (vessel system features ssh))

;; Key-only SSH on port 2222, from one network. The feature opens the
;; port in the firewall too.
(system-configuration
  features:
    (modify-features %server-features
      (ssh-server-feature authorized-keys: "ssh-ed25519 AAAAC3Nza... alice@laptop\n"
          port: 2222
          sources: '("192.0.2.0/24"))))

Verified

A real system.sgl also sets the fields this example leaves out: the host name, kernel, boot loader and file systems. Every time the manual is built, it composes this configuration with Vessel's code and checks what the feature receives.

Options

Pass these keyword fields directly to the feature type. The optional name: keyword sets the instance name; a copy keeps it unless changed.

Option

Default

Type

Description

authorized-keys

#f

not available

not available

port

22

not available

not available

sources

'()

not available

not available

open-firewall

#t

not available

not available

What it adds

Its declared extensions target these feature types:

What it receives

Nothing. Other feature types don't send it items.

Used in

Created with Sigil