system_ssh 0.3.0
system_ssh: ^0.3.0 copied to clipboard
SSH tunnels for Dart through the system's own ssh, so ~/.ssh/config, agents such as 1Password, and ProxyJump just work.
0.3.0 #
openSocksProxyserves a SOCKS5 proxy (ssh -D) on127.0.0.1, through the server to whatever each client asks for.
0.2.0 #
- ssh runs with
BatchMode=yesunless your config sets it, so a password or passphrase prompt fails at once with anSshTunnelExceptioninstead of waiting on a terminal. Use keys through an agent. - On Windows,
SshNotFoundExceptionsays to add "OpenSSH Client" under Optional features in Settings. It can no longer be created withconst. SystemSshClient(loginShell: true)gives ssh your login shell'sPATHandSSH_AUTH_SOCK, for GUI apps that start without them, andenvironmentadds variables of your own.openTunneltakes an optionallocalPortto forward a fixed127.0.0.1port. A taken one fails with the newSshPortInUseException, before ssh starts when it can, and isn't retried.
0.1.1 #
ssh -Galso stops when your process dies, and with it anyMatch execcommand it started, on every platform.
0.1.0 #
SystemSshClient.openTunnelforwards a free127.0.0.1port through the system'sssh, honouring~/.ssh/config, its agent andProxyJump.SshTunnel.donecompletes when ssh exits;abortTriggergives up while it connects.