scpfs

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package scpfs gives SFTP to a server that has none. A server without the sftp subsystem (a router, a NAS, a small system running dropbear) still runs commands: an SFTP server in this process (pkg/sftp's RequestServer) answers the client, with POSIX shell commands on exec channels for listings and metadata, and scp's protocol for the contents of files (cat where the server has no scp).

Index

Constants

This section is empty.

Variables

View Source
var ErrNoShell = errors.New("scp: the server runs no commands")

ErrNoShell reports a server that runs no commands either.

Functions

func NewClient

func NewClient(conn *ssh.Client) (*sftp.Client, error)

NewClient is an SFTP client of conn's server served by commands; closing it ends the server in this process, not the connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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