LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rcon

Source RCON client for the command line

TLDR

Send a single command
$ rcon -H [host] -p [port] -P [password] status
copy
Multi-word server command
$ rcon -H [host] -p [port] -P [password] sm plugins list
copy
Commands from stdin
$ status
sm plugins list
EOF```

**Use a saved server profile**
copy
Alternate config file
$ rcon -c [~/.rconrc] -s [profile] status
copy
# SYNOPSISrcon -H *host* -p *port* -P *password* [*command*...]rcon -s *profile* [*command*...]# DESCRIPTIONrcon is a command-line Source RCON client. It sends commands to a game server that exposes the Source RCON protocol and prints the reply on stdout. Extra argv words after the options are joined into one server command. Without a command on the argv, lines are read from stdin (lines starting with # are comments), so it can run script files.Build with CMake (needs libbsd, check, glib-2.0). Optional bash completion via INSTALL_BASH_COMPLETION=ON. Packages exist on several platforms (see repology).# PARAMETERS-H *host*
Server hostname or IP.
-p *port*
RCON port.
-P *password*
RCON password.
-s *profile*
Named server entry from the config file.
-c *file*
Config file path (default $HOME/.rconrc).
*command*...
Server command words (concatenated). Omit to read commands from stdin.
# CONFIGURATIONDefault config: $HOME/.rconrc. Define server profiles (host, port, password) and select them with -s. Prefer restricting file permissions (chmod 600) because credentials are stored in plain text.# CAVEATSRCON is not encrypted; passwords travel in cleartext on the network. Use only on trusted networks or tunnels. Exit status is 0 on success, non-zero on failure. Not related to Redis or other protocols named "RCON" outside Source engine games.# SEE ALSO[mcrcon](/man/mcrcon)(1), [netcat](/man/netcat)(1)# RESOURCES# INSTALL
$ apk: sudo apk add rcon
copy
$ nix: nix profile install nixpkgs#rcon
copy
Copied to clipboard
Kai