update default and example

This commit is contained in:
Jay Wren
2026-03-12 15:13:22 -04:00
parent 5870094e48
commit f7e4f05c3d
2 changed files with 10 additions and 1 deletions

5
ssh.go
View File

@@ -189,7 +189,10 @@ func configSSH(l *logrus.Logger, ssh *sshd.SSHServer, c *config.C) (func(), erro
}
func attachCommands(l *logrus.Logger, c *config.C, ssh *sshd.SSHServer, f *Interface) {
sandboxDir := c.GetString("sshd.sandbox_dir", "")
// sandboxDir defaults to a dir in temp. The intention is that end user will
// create this dir as needed. Overriding this config value to "" allows
// writing to anywhere in the system.
sandboxDir := c.GetString("sshd.sandbox_dir", "/var/tmp/nebula-debug")
ssh.RegisterCommand(&sshd.Command{
Name: "list-hostmap",