Overview
This page documents all exported types and interfaces from the React Native SSH SFTP library. These types provide strong type safety for TypeScript users and define the data structures used throughout the library.Enums
PtyType
Represents the types of PTY (pseudo-terminal) for SSH connections.
Usage:
Interfaces
KeyPair
Represents a key pair used for SSH authentication.
Usage:
LsResult
Represents the result of a directory listing operation.
Usage:
GeneratedKeyPair
Represents the result of a key pair generation operation.The lowercase
genKeyPair name is still exported as a deprecated alias for backward compatibility and will be removed in a future major version. Use GeneratedKeyPair in new code.
Usage:
KeyDetails
Represents the details of an SSH key.The lowercase
keyDetail name is still exported as a deprecated alias for backward compatibility and will be removed in a future major version. Use KeyDetails in new code.
Usage:
Type Aliases
PasswordOrKey
Represents a password or key for authentication. Can be either a string (password) or a KeyPair object.CallbackFunction
Represents a callback function with an optional response.
Parameters:
Usage:
EventHandler
Represents an event handler function for SSH events.
Usage:
Related
SSHClient Class
Complete API reference for the SSHClient class
Static Methods
Static methods for connecting and key generation