Crates.io | ssh_agent_client_rs_git_bash |
lib.rs | ssh_agent_client_rs_git_bash |
version | |
source | src |
created_at | 2025-03-16 13:32:08.849691+00 |
updated_at | 2025-03-29 19:23:46.279754+00 |
description | Add git-bash ssh-agent implementation for nresare/ssh-agent-client-rs |
homepage | https://bestia.dev |
repository | https://github.com/bestia-dev/ssh_agent_client_rs_git_bash |
max_upload_size | |
id | 1594425 |
Cargo.toml error: | TOML parse error at line 25, column 1 | 25 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Add git-bash ssh-agent implementation for nresare/ssh-agent-client-rs
version: 0.0.14 date: 2025-03-29 author: Bestia.dev repository: GitHub
Hashtags: #maintained #ready-for-use #rustlang
My projects on GitHub are more like a tutorial than a finished product: bestia-dev tutorials.
This is an extension for the crate nresare/ssh-agent-client-rs.
It adds the implementation for windows git-bash.
The original dependency is re-exported.
Instead of adding dependency to ssh-agent-client-rs
, add ssh_agent_client_rs_git_bash
.
Instead of Client::connect()
, use the method Client::connect_to_git_bash_or_linux()
of the new trait:
# Cargo.toml
[dependencies]
ssh_agent_client_rs_git_bash = {git="https://github.com/bestia-dev/ssh_agent_client_rs_git_bash.git"}
use ssh_agent_client_rs_git_bash::Client;
// import trait to scope
use ssh_agent_client_rs_git_bash::GitBash;
let mut client = Client::connect_to_git_bash_or_linux(&path_ssh_auth_sock)
.expect("Cannot connect to ssh-agent.");
// then normal code with Client
client.list-identities().unwrap;
The implementation of ssh-agent in git-bash works over Tcp socket and is supported by this client.
The rust target is x86_64-pc-windows-gnu and can be cross-compiled from Linux to Windows.
Windows git-bash environment has also other names: cygwin, msys2, mingW64, git-for-windows, ...
Windows has other not compatible ssh-agent implementations that are NOT supported by this client.
My open-source projects are free as a beer (MIT license).
I just love programming.
But I need also to drink. If you find my projects and tutorials helpful, please buy me a beer by donating to my PayPal.
You know the price of a beer in your local bar ;-)
So I can drink a free beer for your health :-)
Na zdravje! Alla salute! Prost! Nazdravlje! 🍻
//bestia.dev
//github.com/bestia-dev
//bestiadev.substack.com
//youtube.com/@bestia-dev-tutorials