Added SSH configuration support

This commit is contained in:
JMARyA 2024-12-28 01:34:41 +01:00
parent f2b1a43f62
commit e892136c14
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
4 changed files with 61 additions and 0 deletions

View file

@ -11,6 +11,20 @@ pub struct InstallConfig {
pub pkg: PackageConfig,
/// User Configuration
pub user: Vec<UserConfig>,
/// SSH Configuration
pub ssh: Option<SSHConfig>,
}
#[derive(Debug, Deserialize)]
pub struct SSHConfig {
pub sshd_config: Option<String>,
pub key: Vec<SSHKey>,
}
#[derive(Debug, Deserialize)]
pub struct SSHKey {
pub key: String,
pub users: Vec<String>,
}
#[derive(Debug, Deserialize)]