{"id":34649334,"url":"https://github.com/blacknon/lssh","last_synced_at":"2026-04-06T15:02:54.512Z","repository":{"id":39619857,"uuid":"77844358","full_name":"blacknon/lssh","owner":"blacknon","description":"lssh: A list-based SSH/SCP/SFTP client supporting single and parallel connections, local bashrc usage on remote machines, and advanced proxying. Written in Go.","archived":false,"fork":false,"pushed_at":"2026-04-02T00:39:46.000Z","size":123522,"stargazers_count":293,"open_issues_count":26,"forks_count":29,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-04-02T04:47:06.884Z","etag":null,"topics":["command-line","command-line-tool","go","golang","linux","macos","scp","sftp","ssh","ssh-client","tui","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blacknon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-01-02T15:52:47.000Z","updated_at":"2026-03-31T07:01:27.000Z","dependencies_parsed_at":"2024-06-28T10:26:21.671Z","dependency_job_id":"fa62d71c-5c53-4376-a1a3-5e6d3f3d59bd","html_url":"https://github.com/blacknon/lssh","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/blacknon/lssh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacknon%2Flssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacknon%2Flssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacknon%2Flssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacknon%2Flssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blacknon","download_url":"https://codeload.github.com/blacknon/lssh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacknon%2Flssh/sbom","scorecard":{"id":242245,"data":{"date":"2025-08-11","repo":{"name":"github.com/blacknon/lssh","commit":"105ec27914937de98da76bd2c136f5e079d41f68"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.6.13 not signed: https://api.github.com/repos/blacknon/lssh/releases/174145569","Warn: release artifact v0.6.12 not signed: https://api.github.com/repos/blacknon/lssh/releases/171515006","Warn: release artifact v0.6.11 not signed: https://api.github.com/repos/blacknon/lssh/releases/169649391","Warn: release artifact v0.6.10 not signed: https://api.github.com/repos/blacknon/lssh/releases/169633720","Warn: release artifact v0.6.9 not signed: https://api.github.com/repos/blacknon/lssh/releases/164816979","Warn: release artifact v0.6.13 does not have provenance: https://api.github.com/repos/blacknon/lssh/releases/174145569","Warn: release artifact v0.6.12 does not have provenance: https://api.github.com/repos/blacknon/lssh/releases/171515006","Warn: release artifact v0.6.11 does not have provenance: https://api.github.com/repos/blacknon/lssh/releases/169649391","Warn: release artifact v0.6.10 does not have provenance: https://api.github.com/repos/blacknon/lssh/releases/169633720","Warn: release artifact v0.6.9 does not have provenance: https://api.github.com/repos/blacknon/lssh/releases/164816979"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:216: update your workflow using https://app.stepsecurity.io/secureworkflow/blacknon/lssh/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:224: update your workflow using https://app.stepsecurity.io/secureworkflow/blacknon/lssh/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:228: update your workflow using https://app.stepsecurity.io/secureworkflow/blacknon/lssh/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/blacknon/lssh/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/blacknon/lssh/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:118: update your workflow using https://app.stepsecurity.io/secureworkflow/blacknon/lssh/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:130: update your workflow using https://app.stepsecurity.io/secureworkflow/blacknon/lssh/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:137: update your workflow using https://app.stepsecurity.io/secureworkflow/blacknon/lssh/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:144: update your workflow using https://app.stepsecurity.io/secureworkflow/blacknon/lssh/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:157: update your workflow using https://app.stepsecurity.io/secureworkflow/blacknon/lssh/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:167: update your workflow using https://app.stepsecurity.io/secureworkflow/blacknon/lssh/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:179: update your workflow using https://app.stepsecurity.io/secureworkflow/blacknon/lssh/release.yaml/master?enable=pin","Info:   0 out of  12 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T06:52:59.572Z","repository_id":39619857,"created_at":"2025-08-17T06:52:59.572Z","updated_at":"2025-08-17T06:52:59.572Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31477013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T14:34:32.243Z","status":"ssl_error","status_checked_at":"2026-04-06T14:34:31.723Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","command-line-tool","go","golang","linux","macos","scp","sftp","ssh","ssh-client","tui","windows"],"created_at":"2025-12-24T17:53:56.299Z","updated_at":"2026-04-06T15:02:54.507Z","avatar_url":"https://github.com/blacknon.png","language":"Go","readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/blacknon/lssh)](https://goreportcard.com/report/github.com/blacknon/lssh)\n\nlssh\n====\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./images/lssh_macosx.gif\" width=\"33%\" /\u003e\n  \u003cimg src=\"./images/lssh_linux.gif\" width=\"33%\" /\u003e\n  \u003cimg src=\"./images/lssh_windows.gif\" width=\"33%\" /\u003e\n\u003c/p\u003e\n\nlssh is a pure Go, list-oriented SSH toolkit that lets you select hosts from a TOML-defined inventory and connect with SSH, SCP, or SFTP. It is designed for interactive and parallel operations across multiple servers, with support for multi-stage proxies, port forwarding, ssh-agent, OpenSSH config import, and cross-platform use on Linux, macOS, and Windows.\n\n## Description\n\n### Features\n\n- Pure Go SSH toolkit with cross-platform support for Linux, macOS, and Windows\n- Host inventory defined in TOML, with interactive filtering and selection\n- SSH, SCP, and SFTP workflows from a single tool suite\n- Parallel operations across multiple hosts, including command execution and interactive shells\n- Support for multi-stage proxy chains over SSH, HTTP, and SOCKS5\n- Port forwarding features including local, remote, dynamic, reverse dynamic, and X11 forwarding\n- NFS forwarding features for exporting remote paths locally and reverse-mounting local paths to remote hosts\n- Authentication support for password, public key, certificate, PKCS#11, and `ssh-agent`\n- OpenSSH config import, known_hosts support\n- ControlMaster/ControlPersist session reuse\n\n\n### Commands\n\nThe `lssh` suite provides multiple commands for different SSH-related workflows. Use the table below to choose the right command for your task and jump to its dedicated README.\n\n| Command | Best for | Overview |\n| --- | --- | --- |\n| [lssh](./cmd/lssh/README.md) | Interactive SSH access and port forwarding | TUI-based SSH client for host selection, interactive login, parallel command execution, and forwarding features. |\n| [lsftp](./cmd/lsftp/README.md) | Interactive file operations over SFTP | Interactive SFTP shell for browsing directories, transferring files, and managing one or more hosts together. |\n| [lscp](./cmd/lscp/README.md) | SCP-style file transfer | File transfer command for local-to-remote, remote-to-local, and remote-to-remote copy operations over SSH. |\n| [lsshell](./cmd/lsshell/README.md) | Sending commands to multiple hosts | Parallel interactive shell that can broadcast commands to selected hosts from a single prompt. |\n| [lsmon](./cmd/lsmon/README.md) | Monitoring multiple remote hosts | TUI monitor that displays CPU, memory, disk, network, and process information from multiple hosts side by side. |\n\n\n## Demo\n\nThe animations at the top of this README show `lssh` running on macOS, Linux, and Windows.\n\nIf you want to try the main connection patterns locally, see [demo/README.md](./demo/README.md). It provides a Docker Compose based demo environment with ready-to-use sample hosts, proxy routes, and client configuration.\n\n## Install\n\nYou can install `lssh` with `go install`, Homebrew, or by building from source.\n\n### go install\n\nInstall the latest version directly with Go.\n\n```bash\ngo install github.com/blacknon/lssh/cmd/lssh@latest\ngo install github.com/blacknon/lssh/cmd/lscp@latest\ngo install github.com/blacknon/lssh/cmd/lsftp@latest\ngo install github.com/blacknon/lssh/cmd/lshell@latest\ngo install github.com/blacknon/lssh/cmd/lsmon@latest\n```\n\n### build from source\n\nBuild from the repository when you want to work from the local source tree.\n\n```bash\nGO111MODULE=auto go get -u github.com/blacknon/lssh/cmd/lssh\nGO111MODULE=auto go get -u github.com/blacknon/lssh/cmd/lscp\nGO111MODULE=auto go get -u github.com/blacknon/lssh/cmd/lsftp\nGO111MODULE=auto go get -u github.com/blacknon/lssh/cmd/lsshell\nGO111MODULE=auto go get -u github.com/blacknon/lssh/cmd/lsmon\n```\n\n### brew install\n\nInstall with Homebrew on macOS.\n\n```bash\nbrew install blacknon/lssh/lssh\n```\n\n## Usage\n\nThis section describes shared configuration features used across the `lssh` suite.\nFor command-specific features and CLI usage, see [cmd/README.md](/Users/blacknon/_go/src/github.com/blacknon/lssh/cmd/README.md) and the README in each command directory.\n\n### TUI navigation and key bindings\n\n\u003cdetails\u003e\n\nMost `lssh` commands open the same host selection TUI when you do not pass hosts with `-H`.\nYou can filter the list by typing, then move and confirm the selection from the keyboard.\n\n- \u003ckbd\u003eUp\u003c/kbd\u003e / \u003ckbd\u003eDown\u003c/kbd\u003e: move the cursor one line\n- \u003ckbd\u003eLeft\u003c/kbd\u003e / \u003ckbd\u003eRight\u003c/kbd\u003e: move between pages\n- \u003ckbd\u003eTab\u003c/kbd\u003e: toggle the current host and move to the next line in multi-select screens\n- \u003ckbd\u003eCtrl\u003c/kbd\u003e + \u003ckbd\u003eA\u003c/kbd\u003e: select or unselect all visible hosts in multi-select screens\n- \u003ckbd\u003eBackspace\u003c/kbd\u003e: delete one character from the current filter\n- \u003ckbd\u003eSpace\u003c/kbd\u003e: insert a space into the filter text\n- \u003ckbd\u003eEnter\u003c/kbd\u003e: confirm the current selection\n- \u003ckbd\u003eEsc\u003c/kbd\u003e or `Ctrl + C`: quit immediately\n\nMouse left click also moves the cursor to the clicked line.\n\n`lsmon` adds one extra key binding after startup:\n\n- `Ctrl + X`: toggle the top-panel view for the currently selected host\n\n\u003c/details\u003e\n\n### shared host inventory\n\u003cdetails\u003e\n\n`lssh` reads `~/.lssh.conf` by default.\nYou can define shared settings in `[common]` and host entries in `[server.\u003cname\u003e]`.\nValues in `[server.\u003cname\u003e]` override values from `[common]`.\n\nMinimal example.\n\n```toml\n[common]\nuser = \"demo\"\nport = \"22\"\nkey = \"~/.ssh/id_rsa\"\n\n[server.dev]\naddr = \"192.168.100.10\"\nnote = \"development server\"\n```\n\nAt minimum, a server entry needs `addr`, `user`, and authentication settings such as `pass`, `key`, `cert`, `pkcs11`, or `agentauth`.\n\n\u003c/details\u003e\n\n### keepalive settings\n\u003cdetails\u003e\n\nYou can configure SSH keepalive probes with `alive_interval` and `alive_max`.\nThese behave like OpenSSH `ServerAliveInterval` and `ServerAliveCountMax`.\n\n```toml\n[common]\nalive_interval = 10\nalive_max = 3\n```\n\nWith the example above, `lssh` sends a keepalive request every 10 seconds and closes the connection after 3 consecutive failures.\n\n\u003c/details\u003e\n\n### OpenSSH config import\n\u003cdetails\u003e\n\nLoad and use `~/.ssh/config` by default.\\\n`ProxyCommand` can also be used.\n\nAlternatively, you can specify and read the path as follows: In addition to the path, ServerConfig items can be specified and applied collectively.\n\n```toml\n[sshconfig.default]\npath = \"~/.ssh/config\"\npre_cmd = 'printf \"\\033]50;SetProfile=local\\a\"'\npost_cmd = 'printf \"\\033]50;SetProfile=Default\\a\"'\n```\n\n\u003c/details\u003e\n\n### split config into multiple files\n\u003cdetails\u003e\n\nYou can include server settings in another file.\\\n`common` settings can be specified for each file that you went out.\n\n`~/.lssh.conf` example.\n\n```toml\n[includes]\npath = [\n\t \"~/.lssh.d/home.conf\"\n\t,\"~/.lssh.d/cloud.conf\"\n]\n```\n\n`~/.lssh.d/home.conf` example.\n\n```toml\n[common]\npre_cmd = 'printf \"\\033]50;SetProfile=dq\\a\"'       # iterm2 ssh theme\npost_cmd = 'printf \"\\033]50;SetProfile=Default\\a\"' # iterm2 local theme\nssh_agent_key = [\"~/.ssh/id_rsa\"]\nssh_agent = false\nuser = \"user\"\nkey = \"~/.ssh/id_rsa\"\npkcs11provider = \"/usr/local/lib/opensc-pkcs11.so\"\n\n[server.Server1]\naddr = \"172.16.200.1\"\nnote = \"TEST Server1\"\nlocal_rc = \"yes\"\n\n[server.Server2]\naddr = \"172.16.200.2\"\nnote = \"TEST Server2\"\nlocal_rc = \"yes\"\n```\n\nThe priority of setting values ​​is as follows.\n\n`[server.hogehoge]` \u003e `[common] at Include file` \u003e `[common] at ~/.lssh.conf`\n\n\n\u003c/details\u003e\n\n### multi-stage proxy\n\u003cdetails\u003e\n\nSupports multiple proxy.\n\n* http\n* socks5\n* ssh\n\nBesides this, you can also specify ProxyCommand like OpenSSH.\n\n`http` proxy example.\n\n```toml\n[proxy.HttpProxy]\naddr = \"example.com\"\nport = \"8080\"\n\n[server.overHttpProxy]\naddr = \"over-http-proxy.com\"\nkey  = \"/path/to/private_key\"\nnote = \"connect use http proxy\"\nproxy = \"HttpProxy\"\nproxy_type = \"http\"\n```\n\n\n`socks5` proxy example.\n\n```toml\n[proxy.Socks5Proxy]\naddr = \"example.com\"\nport = \"54321\"\n\n[server.overSocks5Proxy]\naddr = \"192.168.10.101\"\nkey  = \"/path/to/private_key\"\nnote = \"connect use socks5 proxy\"\nproxy = \"Socks5Proxy\"\nproxy_type = \"socks5\"\n```\n\n`ssh` proxy example.\n\n```toml\n[server.sshProxyServer]\naddr = \"192.168.100.200\"\nkey  = \"/path/to/private_key\"\nnote = \"proxy server\"\n\n[server.overProxyServer]\naddr = \"192.168.10.10\"\nkey  = \"/path/to/private_key\"\nnote = \"connect use ssh proxy\"\nproxy = \"sshProxyServer\"\n\n[server.overProxyServer2]\naddr = \"192.168.10.100\"\nkey  = \"/path/to/private_key\"\nnote = \"connect use ssh proxy(multiple)\"\nproxy = \"overProxyServer\"\n```\n\n`ProxyCommand` proxy example.\n\n```toml\n[server.ProxyCommand]\naddr = \"192.168.10.20\"\nkey  = \"/path/to/private_key\"\nnote = \"connect use ssh proxy(multiple)\"\nproxy_cmd = \"ssh -W %h:%p proxy\"\n```\n\n\u003c/details\u003e\n\n\n### available authentication methods\n\u003cdetails\u003e\n\n* Password auth\n* Publickey auth\n* Certificate auth\n* PKCS11 auth\n* Ssh-Agent auth\n\n`password` auth example.\n\n```toml\n[server.PasswordAuth]\naddr = \"password_auth.local\"\nuser = \"user\"\npass = \"Password\"\nnote = \"password auth server\"\n```\n\n`publickey` auth example.\n\n```toml\n[server.PublicKeyAuth]\naddr = \"pubkey_auth.local\"\nuser = \"user\"\nkey = \"~/path/to/key\"\nnote = \"Public key auth server\"\n\n[server.PublicKeyAuth_with_passwd]\naddr = \"password_auth.local\"\nuser = \"user\"\nkey = \"~/path/to/key\"\nkeypass = \"passphrase\"\nnote = \"Public key auth server with passphrase\"\n```\n\n`cert` auth example.\\\n(pkcs11 key is not supported in the current version.)\n\n```toml\n[server.CertAuth]\naddr = \"cert_auth.local\"\nuser = \"user\"\ncert = \"~/path/to/cert\"\ncertkey = \"~/path/to/certkey\"\nnote = \"Certificate auth server\"\n\n[server.CertAuth_with_passwd]\naddr = \"cert_auth.local\"\nuser = \"user\"\ncert = \"~/path/to/cert\"\ncertkey = \"~/path/to/certkey\"\ncertkeypass = \"passphrase\"\nnote = \"Certificate auth server with passphrase\"\n```\n\n`pkcs11` auth example.\n\n```toml\n[server.PKCS11Auth]\naddr = \"pkcs11_auth.local\"\nuser = \"user\"\npkcs11provider = \"/usr/local/lib/opensc-pkcs11.so\"\npkcs11 = true\nnote = \"PKCS11 auth server\"\n\n[server.PKCS11Auth_with_PIN]\naddr = \"pkcs11_auth.local\"\nuser = \"user\"\npkcs11provider = \"/usr/local/lib/opensc-pkcs11.so\"\npkcs11 = true\npkcs11pin = \"123456\"\nnote = \"PKCS11 auth server\"\n```\n\n`ssh-agent` auth example.\n\n```toml\n[server.SshAgentAuth]\naddr = \"agent_auth.local\"\nuser = \"user\"\nagentauth = true # auth ssh-agent\nnote = \"ssh-agent auth server\"\n```\n\n\u003c/details\u003e\n\n### check KnownHosts\n\u003cdetails\u003e\n\nSupported check KnownHosts.\nIf you want to enable check KnownHost, set `check_known_hosts` to `true` in Server Config.\n\nIf you want to specify a file to record KnownHosts, add file path to `known_hosts_files`.\n\n```toml\n[server.CheckKnownHosts]\naddr = \"check_knwon_hosts.local\"\nuser = \"user\"\ncheck_known_hosts = true\nnote = \"check known hosts example\"\n\n[server.CheckKnownHostsToOriginalFile]\naddr = \"check_knwon_hosts.local\"\nuser = \"user\"\ncheck_known_hosts = true\nknown_hosts_files = [\"/path/to/known_hosts\"]\nnote = \"check known hosts example\"\n```\n\n\u003c/details\u003e\n\n### ControlMaster / ControlPersist\n\u003cdetails\u003e\n\nYou can reuse SSH sessions with OpenSSH-style ControlMaster settings.\nThis is useful when multiple operations connect to the same host repeatedly.\n\n`~/.lssh.conf` example.\n\n```toml\n[common]\ncontrol_master = true\ncontrol_path = \"/tmp/lssh-control-%h-%p-%r\"\ncontrol_persist = \"10m\"\n\n[server.controlmaster]\naddr = \"192.168.100.110\"\nuser = \"demo\"\nkey = \"~/.ssh/id_rsa\"\nnote = \"reuse ssh session\"\n```\n\n\u003c/details\u003e\n\n## Related projects\n\n- [go-sshlib](https://github.com/blacknon/go-sshlib) ... A Go library for SSH connections, command execution, and interactive shell handling.\n\n## Licence\n\nA short snippet describing the license [MIT](https://github.com/blacknon/lssh/blob/master/LICENSE.md).\n\n## Author\n\n[blacknon](https://github.com/blacknon)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacknon%2Flssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblacknon%2Flssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacknon%2Flssh/lists"}