begin sftp server support

This commit is contained in:
2025-07-23 08:48:42 +02:00
parent 25dfefccb0
commit 49cd23b21b
2 changed files with 108 additions and 0 deletions

View File

@ -16,6 +16,7 @@ from sshecret_sshd.commands import dispatch_command
from sshecret.backend import SshecretBackend, Client, Operation, SubSystem
from .settings import ServerSettings, ClientRegistrationSettings
from .sftp_server import SshecretFileServer
LOG = logging.getLogger(__name__)
@ -222,6 +223,7 @@ async def run_ssh_server(
port,
server_host_keys=keys,
process_factory=dispatch_command,
sftp_factory=SshecretFileServer,
)
return server