1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

KAG Enter the rcon password [Solved]

Discussion in 'Server Help' started by NEOparmen, Aug 18, 2013.

  1. NEOparmen

    NEOparmen Catapult Fodder

    Messages:
    27
    As in the console, enter the command for the admin password?/rcon password?Or no?
     
  2. Galen

    Galen Haxor Staff Alumni Donator

    Messages:
    1,262
    /rcon /login password
     
  3. Monsteri

    Monsteri Slower Than Light Tester

    Messages:
    1,916
    There is a whole wiki for this kind of stuff, you know.
     
  4. Brilly

    Brilly Haxor

    Messages:
    222
    Wiki's kinda outdated if you ask me.

    Everything I need is in the installation directory.
     
  5. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909

    No one really went to great lengths to explain it to you, so I figured I'd throw in my 2 cents.

    - You'll need to setup your seclevs to allow you to have access to the "login" command.
    - You need to setup the rcon password.
    - To log into the rcon, in game, you need to bring up the console by pressing the "Home" key and then typing: /rcon /login %password% where %password% is what you set in the autoconfig.gm

    Here is the wiki page for rcon: https://wiki.kag2d.com/wiki/Server#Remote_Control
    & added bonus, Here is the wiki page on remote administration: https://wiki.kag2d.com/wiki/Remote_Administration

    hope it helps.
     
    Tsilliev likes this.
  6. hierbo

    hierbo Ballista Bolt Thrower
    1. The Young Blood Collective - [YB]

    Messages:
    190
    Hey guys, I hope this thread isn't too old to be of use anymore. I have a question on a related note, however, that I feel is not documented (or at least I could not find my answer in all the documentation I have seen).

    I have a Linux server that I have set up at remote location I seldom have cause to visit. As a result, I use the remote administration pretty exclusively. The problem I am having is that I can not find a way to terminate an RCON session without either terminating the KAG server instance (which is unacceptable to me), or ending the terminal session entirely (which is annoying). Does anyone know of a command, documented or otherwise, that I could use to log out of my RCON session without making my server die? I want to just log out of RCON and be back at my terminal prompt.
     
  7. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909
    You could run the RCON session in a screen session. Screen is a CLI tool that allows you to open tabs, so to speak from within the terminal.

    for debian/ubuntu based distros use the following (if it's not installed)

    Code:
    sudo apt-get install screen
    You can then create a screen session, like so:

    Code:
    screen -R THIS IS THE NAME OF MY SCREEN
    screen -R names the screen and connects you to it automatically, so you could create a screen session, and use that screen to connect to rcon, so you constantly have the RCON open.

    SO in total:

    Code:
    screen -R rconsession
    
    and then run
    
    telnet ::1 50301
    
    from inside the screen session.
    you can leave a screen session by:

    Code:
    ctrl + A+D
    More on screen:

    - https://www.gnu.org/software/screen/
    - http://www.gnu.org/software/screen/manual/screen.html

    You could always just disconnect from your telnet session, by using ctrl + ] and then typing "quit" which I believe doesn't kill your server session.

    telnet commands: http://unixhelp.ed.ac.uk/tables/telnet_commands.html

    Hope this all makes sense and or helps :3

    EDIT: I should probably add that you need to telnet to your port, but I figure you've already figured out that much ;)
     
    hierbo likes this.