Skip to content

Conversation

@FloSch62
Copy link
Member

The API server provides SSH proxy functionality, allowing you to connect to lab nodes without direct access to the container network.
How it works

The API server creates a TCP proxy on a dynamically allocated port
The proxy forwards connections to the target node's SSH port
You connect to the API server's allocated port using your regular SSH client
Sessions have configurable timeouts and are automatically cleaned up

httpPOST /api/v1/labs/{labName}/nodes/{nodeName}/ssh
Content-Type: application/json

{
  "sshUsername": "admin",
  "duration": "1h"
}
{
  "port": 2222,
  "host": "api-server.example.com",
  "username": "admin",
  "expiration": "2025-04-18T12:00:00Z",
  "command": "ssh -p 2222 admin@api-server.example.com"
}

@FloSch62 FloSch62 merged commit 6878911 into main Apr 18, 2025
@FloSch62 FloSch62 deleted the ssh-service branch April 18, 2025 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant