Skip to main content

SSH-based communication layer for distributed agents

Project description

AgentLink

AgentLink is a lightweight Python library that enables secure SSH communication between Linux/Window IP adresses.

Installation

pip install agentlink

Basic Usage

from agentlink import AgentLink

link = AgentLink()
link.register(
    "agent1",
    hostname="192.168.1.101",
    username="user",
    key_filename="~/.ssh/id_rsa"
)

# Run remote command
output = link.send_command("agent1", "hostname")
print(output)

# Upload a file
link.upload_file("agent1", "local.txt", "/tmp/remote.txt")

# Close all sessions
link.close_all()

Features

  • Registration of multiple SSH targets (agents)
  • Send remote commands
  • Upload and download files
  • Thread-safe operations

License

MIT

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

agentlink_py-0.1.0.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentlink_py-0.1.0-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

Supported by

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