Configuring and connecting to Counter-Strike 2.0 Game Server on Ubuntu 24.04
- Start your VM
To start the server, run the VM through the Azure Portal.
- To connect to the server, you should know the VM’s IP address. You can find it in your Azure personal account. You need to select the virtual machine from the list. By clicking the item “Overview”, your IP is displayed in the line “Public IP Address”.

- Ports 27015 TCP and 27015 UDP must be open in network properties in Azure Firewall. To check, go to the Networking tab.

- Get Token
- To display the server in the browser list inside the game, you should add a GSLT Token to the config file. To create a token, go to the next page under your Steam account: Steam Game Server Account Management.
- Enter 730 in the app ID field, and enter the text to further identify the token in the Memo field. Then click “Create”.

Copy the received token.
- Configure the server
Connect to your VM:
- With OpenSSH
In Windows 10 (starting with version 1809), an OpenSSH client is available, which you can use to connect to Linux servers via SSH. If Windows 10 is suitable and the OpenSSH client is installed, you can start connecting via SSH. To do this, launch a normal Windows command prompt and enter the command “ssh user@*vm_ip*” (1), where “user” is the username that was specified while creating the virtual machine and “*vm_ip*” is the VM IP address.
Then type “Yes” (2) and enter a password (3) that was specified while creating the virtual machine.

- With the PuTTY application
To do this, you need the PuTTY application to connect via SSH. You can download it at the following link – Download.
Run PuTTY, enter the VM address in the “Host” field (1), and click “Open” (2) to connect.

In the opened console, you will need to enter a username (1) and password (2) that were specified while the VM was being created (you’ll not see the password in the console while entering it).

Enter the following commands:
> sudo su (1)
> su gameserver (2)
> cd /home/gameserver (3)
> ./cs2server stop (4)

Open configuration file
> nano /home/gameserver/lgsm/config-lgsm/cs2server/cs2server.cfg
Add the parameter to the end of the file gslt=”Token” and paste the generated token from section 2 in quotes. To go to the desired line, use the arrows on the keyboard. To paste the copied text, use the right mouse button.

Press Ctrl + X on the keyboard to exit the file. Then, you will be asked to save the changes to the file – press Y on the keyboard to confirm and Enter to overwrite the same file.
Now you should start the server using the following commands:
> ./cs2server start
To manage the server, you can use the commands described in the Basic usage tab on the page Deploy Counter-Strike 2 Game Servers.
- Connect to your server
To connect to the server, launch the “Counter-Strike 2” game on your PC, open the console by pressing “`”, type “connect VM’s IP” and press Enter.

Let’s go! Hold your positions!