Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dyuri/xontrib-ssh-agent
ssh-agent integration for xonsh
https://github.com/dyuri/xontrib-ssh-agent
ssh xonsh xontrib
Last synced: 3 months ago
JSON representation
ssh-agent integration for xonsh
- Host: GitHub
- URL: https://github.com/dyuri/xontrib-ssh-agent
- Owner: dyuri
- License: mit
- Created: 2019-11-24T11:32:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-05T10:05:24.000Z (over 2 years ago)
- Last Synced: 2024-07-01T14:58:42.305Z (4 months ago)
- Topics: ssh, xonsh, xontrib
- Language: Xonsh
- Homepage:
- Size: 18.6 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-xontribs - ssh_agent - ssh-agent integration. (Integrations / Prompt tweaks)
README
# Xontrib-ssh-agent
Ssh-agent xonsh integration.
## Install
Install using pip
```
pip install xontrib-ssh-agent
```Add to your `.xonshrc`:
```
xontrib load ssh_agent
```## Usage
This xontrib launches `ssh-agent` when `xonsh` is started if it isn't already running, and sets the required environment variables.
By issuing the `ssh` command it checks for added identities, and if there's none it adds them via the `ssh-add` command.
### `git` support
To handle ssh identities, [repassh](https://github.com/dyuri/repassh) is used under the hood. If it's on the `$PATH`, `xontrib-ssh-agent` sets `$GIT_SSH` to it by default. If your `repassh` command is not on the `$PATH` by default, but you still want to use it for git, then set `$GIT_SSH` to it manually, or set `$REPASSH_COMMAND` before you load this xontrib.