Discover Packages
github.com/rakunlabs/turna
pkg
server
tcp
middleware
sshserver
package
Version:
v0.13.2
Opens a new window with list of versions in this module.
Published: Nov 12, 2026
License: MIT
Opens a new window with license information.
Imports: 21
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Package sshserver implements an SSH server terminal TCP middleware.
type Forwarding struct {
Remote bool `cfg:"remote"`
Local bool `cfg:"local"`
AllowedRemoteBind []string `cfg:"allowed_remote_bind"`
AllowedLocalDest []string `cfg:"allowed_local_destination"`
MaxRemoteForwards int `cfg:"max_remote_forwards"`
MaxConnections int `cfg:"max_connections"`
}
type SFTP struct {
Enabled bool `cfg:"enabled"`
Directory string `cfg:"directory"`
ReadOnly bool `cfg:"read_only"`
}
SFTP uses Turna's OS permissions. Directory is a working directory, not a
filesystem jail; absolute paths remain available subject to those permissions.
type SSHServer struct {
HostKeys []string `cfg:"host_keys" log:"-"`
Banner string `cfg:"banner"`
Users []User `cfg:"users"`
}
type Shell struct {
Enabled bool `cfg:"enabled"`
Command string `cfg:"command"`
OSUser string `cfg:"os_user"`
AllowExec bool `cfg:"allow_exec"`
Env []string `cfg:"env" log:"-"`
}
type User struct {
Name string `cfg:"name"`
AuthorizedKeys []string `cfg:"authorized_keys"`
AuthorizedKeyFiles []string `cfg:"authorized_key_files"`
Shell *Shell `cfg:"shell"`
SFTP *SFTP `cfg:"sftp"`
Forwarding *Forwarding `cfg:"forwarding"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.