SVCS - Русская документация
Загрузка...
Поиск...
Не найдено
SSHConfig.hxx
См. документацию.
1
15#pragma once
16
17#include <string>
18#include <cstdint>
19
20namespace svcs::server::ssh {
31struct SSHConfig {
32 std::string host = "0.0.0.0";
33 uint16_t port = 2222;
34 std::string host_key;
35 std::string auth_file;
36 std::string keys_dir = "/etc/svcs/ssh/keys";
37 std::string passwd_dir = "/etc/svcs/ssh";
38 size_t max_connections = 256;
39 int timeout_sec = 300;
40
43
52 static SSHConfig load(const std::string& path);
53
65 bool save(const std::string& path) const;
66
76 bool validate() const;
77};
78
79} // namespace svcs::server::ssh
Конфигурация SSH сервера
Определения SSHConfig.hxx:21
bool save(const std::string &path) const
Сохраняет в файл
Определения SSHConfig.cxx:77
static SSHConfig load(const std::string &path)
Загружает из файла
Определения SSHConfig.cxx:20
bool validate() const
Проверяет конфигурацию
Определения SSHConfig.cxx:96