Cosmos-Server icon indicating copy to clipboard operation
Cosmos-Server copied to clipboard

[FEAT]: CLI app to access host via WWW

Open mareczek82 opened this issue 1 year ago • 2 comments

Feature Description

sometimes i cannot use Putty or other CLI app to access my VPS. I tried to lunch cockpit and proxy it via cosmos, but i couldn't make it work (Oracle free tier VPS).

I think it would be very helpful to have such access via cosmos itself or app

mareczek82 avatar Dec 14 '23 12:12 mareczek82

I suggest and am trying to get Wetty working. It's a highly responsive terminal emulator that works behind nginx.

JasonLocklin avatar May 21 '24 19:05 JasonLocklin

I got it working: (replace <USER> and <HOSTNAME> -don't use localhost because docker)

{
  "services": {
    "wetty": {
      "container_name": "wetty",
      "image": "wettyoss/wetty",
      "environment": [
        "SSHHOST=<HOSTNAME>",
        "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
        "NODE_VERSION=18.10.0",
        "YARN_VERSION=1.22.19",
        "NODE_ENV=production",
        "SSHUSER=<USER>"
      ],
      "labels": {
        "maintainer": "[email protected]",
        "org.opencontainers.image.created": "2022-10-09T10:57:10.338Z",
        "org.opencontainers.image.description": "Terminal in browser over http/https. (Ajaxterm/Anyterm alternative, but much better)",
        "org.opencontainers.image.licenses": "MIT",
        "org.opencontainers.image.revision": "d9fb1635ba4c5a8efa9efb6b9da0a5083557f903",
        "org.opencontainers.image.source": "https://github.com/butlerx/wetty",
        "org.opencontainers.image.title": "wetty",
        "org.opencontainers.image.url": "https://github.com/butlerx/wetty",
        "org.opencontainers.image.version": "main"
      },
      "ports": [],
      "volumes": [],
      "networks": {
        "bridge": {}
      },
      "routes": null,
      "restart": "always",
      "devices": null,
      "expose": [],
      "depends_on": [],
      "tty": true,
      "stdin_open": true,
      "entrypoint": "yarn start",
      "working_dir": "/usr/src/app",
      "hostname": "wetty",
      "mac_address": "02:42:ac:11:00:04",
      "network_mode": "default",
      "healthcheck": {
        "test": null,
        "interval": 0,
        "timeout": 0,
        "retries": 0,
        "start_period": 0
      }
    }
  }
}

JasonLocklin avatar May 22 '24 14:05 JasonLocklin