Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

logerror/t2t

Repository files navigation

t2t - Terminal to Terminal, access to remote machines by Terminal or Web Terminal (Browser)

████████╗██████╗ ████████╗
╚══██╔══╝╚════██╗╚══██╔══╝
 ██║ █████╔╝ ██║ 
 ██║ ██╔═══╝ ██║ 
 ██║ ███████╗ ██║ 
 ╚═╝ ╚══════╝ ╚═╝ 
 

t2t (Terminal to Terminal)
t2t is a tool designed to simplify remote host management via the terminal. It allows users to connect easily to multiple remote hosts and manage them concurrently. t2t supports multiple users connecting to the same remote host simultaneously, with a central server managing agent-client connections.

exec log exec log

Features

  • Multi-host management: Easily connect and manage multiple remote hosts through a unified interface.
  • Concurrent connections: Support for multiple users connecting to the same remote host simultaneously.
  • Agent-based architecture: Agents register with the central server, and clients connect to the desired remote hosts via the server.
  • Secure connections: All connections are secured to ensure safe communication between clients and remote hosts.

Architecture

  1. Agent: The agent runs on the remote host and registers itself with the central server.
  2. Server: Acts as the middle layer that handles requests from clients and routes them to the corresponding agents.
  3. Client: The client connects to the server, selects the desired remote host (agent), and initiates a terminal session.

The basic flow:

  • Agent registers to the server.
  • Client sends a request to connect to a remote host through the server.
  • Server routes the client to the appropriate agent.
  • Multiple clients can connect to a single agent simultaneously.

Installation

Prerequisites

  • Golang (for building the agent, server, and client)

Steps

  1. Build the server, agent, and client:

    ./build.sh
    
  2. Run the server:

    ./build/t2t-server
    
  3. Run the agent on each remote host:

    ./build/t2t-agent will output the host info and code to connect to the server.
    
  4. Connect to a remote host using the client or web terminal (localhost:9002):

    ./build/t2t-client <Host Info> <Code> // <Host Info> and <Code> from step 2
    

Usage

  1. Start the server on a central machine.
  2. Deploy agents on all remote hosts you wish to manage.
  3. Use the client to connect to the server, and specify which agent (remote host) you want to access.
  4. Once connected, you will have a terminal session directly with the remote host.

Contributing

Contributions are welcome! Please feel free to submit a pull request, or open an issue if you find a bug or have a feature request.

About

Terminal to Terminal - support web terminal

Resources

License

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /