sftpd

command
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

sftpd is a throwaway SFTP server for recording the GIFs under assets/ -- not part of the lazyftp product. It serves one directory (the last argument) as the SFTP root, on 127.0.0.1:2022, over password auth, using only dependencies lazyftp's own SFTP client already brings in (golang.org/x/crypto/ssh, github.com/pkg/sftp).

sftpd [-hostkey file] [-authorized file] [-drop-first duration] <root-dir>

-hostkey keeps the server's host key in a file, created on first use, so a restarted server is still the same server to a client that already trusts it. Without it a new key is made on every start. -authorized is an authorized_keys file whose keys may log in as the demo user, besides the password. -drop-first cuts the first connection after that long, the way an idle timeout would, so a recording can show a dropped session being reopened.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址