Fora
  • Getting Started
  • Outlining the differences
  • Frequently Asked Questions
  • Usage
    • Introduction
      • Inventories
      • Hosts & Groups
      • Scripts
    • Best practices
  • API
    • Operations Index
    • Fora API
      • fora.connectors
        • connectors.connector
        • connectors.local
        • connectors.ssh
        • connectors.tunnel_connector
        • connectors.tunnel_dispatcher
      • fora.operations
        • operations.api
        • operations.apt
        • operations.files
        • operations.git
        • operations.local
        • operations.pacman
        • operations.pip
        • operations.portage
        • operations.postgres
        • operations.system
        • operations.systemd
        • operations.utils
      • fora.connection
      • fora.example_deploys
      • fora.inventory_wrapper
      • fora.loader
      • fora.logger
      • fora.main
      • fora.remote_settings
      • fora.types
      • fora.utils
      • fora.version
  • Examples
    • Managing dotfiles
    • Using secrets
  • Links
    • Fora on GitHub
Powered by GitBook
On this page
  • class ssh.SshConnector
  • def SshConnector.command()
  • def SshConnector.extract_hostname()
  1. API
  2. Fora API
  3. fora.connectors

connectors.ssh

Contains a connector which handles connections to hosts via SSH.

class ssh.SshConnector

A tunnel connector that provides remote access via SSH.

def SshConnector.command()

def SshConnector.command(self) -> list[str]:

Constructs the full ssh command needed to execute a tunnel dispatcher on the remote host.

Returns

  • list[str]: The required ssh command.

def SshConnector.extract_hostname()

def SshConnector.extract_hostname(cls, url: str) -> str:
Previousconnectors.localNextconnectors.tunnel_connector

Last updated 3 years ago