---
name: "ltsp-update-sshkeys"
section: "8"
platform: "linux"
package: "ltsp-server"
version: "5.18.12-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/ltsp-update-sshkeys"
---

# ltsp-update-sshkeys(8)

update LTSP chroots to trust the server ssh keys

## NAME

ltsp-update-sshkeys - update LTSP chroots to trust the server ssh keys

## SYNOPSIS

**ltsp-update-sshkeys** \[*OPTION*\] \[*host*...\]

## DESCRIPTION

If any hosts are specified, their SSH keys are exported in a file, by default */etc/ltsp/ssh\_known\_hosts.auto*. Otherwise, all LTSP chroots are updated to trust the SSH keys of this server along with any additional keys in */etc/ltsp/ssh\_known\_hosts*.\* files.

## OPTIONS

- **-b**, **--base**\[=*PATH*\]

  The LTSP base directory Defaults to */opt/ltsp* if unspecified.

- **-e**, **--export**\[=*FILE*\]

  File name to export the hosts SSH keys to (- for stdout). Defaults to */etc/ltsp/ssh\_known\_hosts.auto* if unspecified.

- **-h**, **--help**

  Displays the ltsp-update-sshkeys help message.

- **-p**, **--port**\[=*PORT*\]

  SSH port for remote servers.

- **-u**, **--update**

  Update the chroot SSH keys even if hosts are specified.

- **--version**

  Output version information and exit.

## AVAILABILITY

Part of the **ltsp** package and the latest versions are available in source form from  *https://launchpad.net/products/ltsp*.

## FILES

*/etc/ltsp/\<tool\>.conf*: Upon execution the tool will read a configuration file to override built-in defaults.

Values are NAME="VALUE" pairs, with # representing commented lines. most commandline options have an equivalent. an example Debian based system with an alternate base location, architecture, and distribution:

 \# set alternate default location for ltsp chroot (--base)\
  BASE="/srv/ltsp"\
  \# build an amd64 chroot by default (--arch)\
  ARCH="amd64"\
  \# build a Debian sid environment (--dist)\
  DIST="sid"

*/etc/ltsp/ltsp-server.conf*: Each LTSP server tool will read a generic configuration file. This file is typically used for setting BASE, TFTP\_DIRS and TFTP\_BOOT\_DIR. These settings are overwritten by those set in specific tool configs.

## AUTHOR

Autogenerated from the script source code with **help2man**. Distributed under the terms of the GNU General Public License version 2 or any later version.

## REPORTING BUGS

Report bugs to *https://bugs.launchpad.net/ltsp*.

## SEE ALSO

[**ltsp-build-client**(8)](/ltsp-build-client/8.md), [**ltsp-update-kernels**(8)](/ltsp-update-kernels/8.md), [**ssh-keyscan**(1)](/ssh-keyscan/1.md), [**sshd**(8)](/sshd/8.md)
