Goph v2 is out:
https://github.com/melbahja/gophgoph is a lightweight, idiomatic SSH client library wrapping x/crypto/ssh. v2 is a rewrite focused on simplicity and zero external dependencies beyond x/crypto + x/net + sftp.
Highlights:
- Functional options API:
- Context aware command execution with cancellation
- SOCKS5 proxy with optional auth, jump hosts, and proxy+jump chaining
- Keyboard-interactive support for OTP / 2FA, separate from password auth
- Script execution from io.Reader or file with custom interpreter
- SFTP file operations, known-hosts helpers, and reusable Dialer
Also released: v1.5.2 on the v1 branch, security update bumping x/crypto for existing v1 users.
-
https://github.com/melbahja/goph/releases/tag/v2.0.1-
https://github.com/melbahja/goph/releases/tag/v1.5.2Cheers,
Melbahja