Skip to main content

A small script to connect the existing ssh agent

Project description


A small script to connect the existing ssh agent


ssh-connect v1.0


pip install ssh-connect


eval $(python -m ssh-connect)

You can give this command an alias to simplify the it:
Add the following line to you bashrc

Usually ~/.bashrc (current user) or /etc/bashrc (global); if you use Git For Windows, it's /etc/bash.bashrc

alias ssh-connect='python -m ssh-connect'

Then you can use the command

eval $(ssh-connect)

The command finds the first existing ssh agent and connect it.

Note: If you have more than one ssh agent running in the background, which agent that would be connected is undefined.

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

ssh-connect-1.0.0.tar.gz (2.4 kB view hashes)

Uploaded source

Built Distribution

ssh_connect-1.0.0-py3-none-any.whl (3.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page