Project

General

Profile

Actions

Feature #15199

closed

Unable to add user defined options to /etc/ssh/sshd_config due to its dynamic nature and no UI to add additional configuration options

Added by Ronald Antony 10 months ago. Updated 10 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
sshd
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:

Description

In order to run a user with scponly privileges
(see: https://forum.netgate.com/topic/185794/there-s-absolutely-no-useful-documentation-on-user-system-copy-files-to-home-directory-chrooted-scp )
I would need to add these lines to /etc/ssh/sshd_config

Match User username
ChrootDirectory /home/username
ForceCommand internal-sftp

But I can't. I'm sure there are other reasons why someone might want to add options there, but since the file is dynamically created when the system boots, there's not much one can meaningfully change there, much less in a way that's persistent with saving and restoring a system configuration.

Actions

Also available in: Atom PDF