Skip to main content

SSH agent integration for xonsh

Project description


Ssh-agent xonsh integration.


Install using pip

pip install xontrib-ssh-agent

Add to your .xonshrc:

xontrib load ssh_agent


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 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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xontrib-ssh-agent-1.0.12.tar.gz (3.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page