How in Ubuntu server (which has a game server) how to give access to the game console only?

  • 0
    How to do this so that the user can connect via ssh directly to the game server control?
    Ubuntu Jase McGrath, May 29, 2020

  • 2 Answers
  • 0
    graphic console? xserver?

    Install a vnc server on the server (there are several implementations of them in ubuntu, it seems that the standard vino is configured from the gui of the control panel, but I haven't dug in for a long time), then forward the port to ssh, by default 5900 (more precisely, the server number is added to this number), and already locally connect via vnc client (available for all operating systems)

  • 0
    To do this, you need to write the corresponding command in ~ / .ssh / authorized_keys .

    For example, to run the MySQL client it will look something like this:

    command="/usr/bin/mysql",no-port-forwarding,no-X11-forwarding,no-agent-forwarding ssh-rsa AAAABlablabla Username
    Hanna Lowery

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!