gotit

gotit is a lightweight tool that establishes a secure peer-to-peer connection between an SSH client and an HTTP client. It's designed for quick data transfers or remote command execution without storing any data on the server.
Features
- Secure SSH connection
- Lightweight HTTP server
- Peer-to-peer data transfer
- No data storage on the server
Getting Started
To get started with gotit, you'll need to clone the repository and build the project.
git clone https://github.com/AlexEkdahl/gotit.git
cd gotit
make
Usage
You can start the gotit server with the following command:
make run
By default, the HTTP server listens on port 8080 and the SSH server listens on port 2222. You can change these settings using the httpport and sshport flags.
gotit --httpport 8000 --sshport 2200
Sending Data
To send data, establish an SSH connection to the gotit server. Once connected, the server will provide a unique URL for the session.
Initiate a file transfer from the SSH client. The data you send will be forwarded to the HTTP client that connects to the provided URL:
ssh sshserver -p 2020 < main.go
or
cat main.go | ssh sshserver -p 2020
Contributing
Contributions to gotit are welcome! Please submit a pull request or create an issue if you have any improvements or bug fixes.
License
This project is licensed under the terms of the MIT license. See the LICENSE file for details.