Skip to content

Lshd

services.lshd.enable

Whether to enable the GNU lshd SSH2 daemon, which allows secure remote login.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix

services.lshd.hostKey

Path to the server's private key. Note that this key must have been created, e.g., using "lsh-keygen --server | lsh-writekey --server", so that you can run lshd.

Type: string

Default

"/etc/lsh/host-key"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix

services.lshd.interfaces

List of network interfaces where listening for connections. When providing the empty list, [], lshd listens on all network interfaces.

Type: list of string

Default

[ ]

Example

["localhost""1.2.3.4:443"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix

services.lshd.loginShell

If non-null, override the default login shell with the specified value.

Type: null or string

Default

null

Example

"/nix/store/xyz-bash-10.0/bin/bash10"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix

services.lshd.passwordAuthentication

Whether to enable password authentication. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix

services.lshd.portNumber

The port on which to listen for connections.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

22

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix

services.lshd.publicKeyAuthentication

Whether to enable public key authentication. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix

services.lshd.rootLogin

Whether to enable remote root login. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix

services.lshd.srpKeyExchange

Whether to enable SRP key exchange and user authentication.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix

services.lshd.subsystems

List of subsystem-path pairs, where the head of the pair denotes the subsystem name, and the tail denotes the path to an executable implementing it.

Type: list of path

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix

services.lshd.syslog

Whether to enable syslog output. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix

services.lshd.tcpForwarding

Whether to enable TCP/IP forwarding. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix

services.lshd.x11Forwarding

Whether to enable X11 forwarding. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/ssh/lshd.nix