Skip to content

OpenSSH JS API ​

Read OpenSSH configuration into saved connection profiles, resolve concrete aliases within the supported parser rules, and preview supported configuration changes.

Get a working result ​

The API quick start creates synthetic native settings, reads them through the public library, selects one profile and searches by host. Its code and captured output are shown together. No application installation or remote account is needed.

Install @jalsoedesign/openssh-core to use the library. The separate @jalsoedesign/openssh-cli installs the terminal command. See installation for runtime requirements.

Learn by task ​

TaskDocumentation
Read a file and understand the returned metadataQuick start
List, select and search profilesEveryday profile queries
Find and select native storageStorage and discovery
Preview supported changes and cross-app syncWriting guide
Use a selected profile in your own integrationExecution boundary
Look up parameters, return values and exportsAPI reference and TypeScript signatures

Wildcard evaluation and supported Include/token handling have explicit limits. ProxyJump is metadata; this reader does not start forwarding or run ssh/ProxyCommand.

Application adapters retain native provenance and diagnostics. Portline supplies shared contracts/querying/writer guards; Dockline is a separate execution library. For terminal commands, switch to the CLI documentation.

Connect through the shared integration ​

Use shared FTP/SFTP and SSH execution to reuse a selected normalized profile with @jalsoedesign/portline-dockline. The guide includes reader-specific source creation, optional client installation, scoped cleanup and trust/authentication requirements. Native readers do not open connections while listing profiles.