LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-08-2014, 11:47 AM   #1
Bloop Bloop
LQ Newbie
 
Registered: Aug 2014
Posts: 4

Rep: Reputation: Disabled
Source game SSH not accepting commands?


Hi everyone, first time posting in a Linux support forum with a problem I don't know if anyone will have an answer to, so, bear with me please. I'm also not sure if I should be posting this here, but, again.. first time.

I'm running CentOS 6.5 intended to be a game server machine. The game in question is Team Fortress 2.

Now, the issue is one that I can't for the life of me figure out. Basically, the game server itself seems to run fine. It reads custom executable files whilst running (which tells me it isn't a permissions issue), and if I execute commands through the in-game remote console, commands are indeed executed. However, when I execute the same commands via SSH, it draws a blank. A friend said it isn't accepting stdin?

Code:
Connection to Steam servers successful.
   Public IP is ##.###.##.##.
Assigned anonymous gameserver Steam ID [A-1:1963328514(4533)].
VAC secure mode is activated.
status
status
status
changelevel cp_badlands
The last four lines there were manually input. If I were to type the same status command with the remote console in game, it would correctly return:

Code:
] rcon status
hostname: test server
version : 2351233/24 2351936 secure
udp/ip  : ##.###.##.##:27015  (public ip: ##.###.##.##)
steamid : [A-1:1963328514(4533)] (90091463597491202)
account : not logged in  (No account specified)
map     : cp_badlands at: 0 x, 0 y, 0 z
players : 0 humans, 0 bots (20 max)
# userid name                uniqueid            connected ping loss state  adr
Basically the commands aren't making it to the server when executed by SSH.

Any ideas, or perhaps anything else I can display?
 
Old 08-09-2014, 04:44 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
I'm also not sure if I should be posting this here,
Your game server is running on a linux platform (CentOS 6.5) so it's OK to post questions here.
Quote:
account : not logged in (No account specified)
While that's probably not a big deal when you're accessing the server from the console, it is probably not acceptable when accessing it remotely (ssh), did you make an administrative account for the server? Your system account is apparently not logging you in as the servers admin (or that line would show you as logged it).
 
Old 08-09-2014, 04:46 AM   #3
Bloop Bloop
LQ Newbie
 
Registered: Aug 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
I'm fairly sure that account login thing isn't actually on the side of Linux, but for a separate authentication method used by the game to add it to a public matchmaking queue.

As far as the question, I've tried it on both its own administrative user and on root.
 
Old 08-09-2014, 05:11 AM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Have you ever logged in locally (i.e. from the console) as the administrative user of the game server and tried the same commands?
Have you ever logged into the server and run something innocuous (like "ls -l" in your home directory) to see if the server is "accepting stdin"?
What have you done to trouble shoot this problem before posting this question?
 
Old 08-09-2014, 07:38 AM   #5
Bloop Bloop
LQ Newbie
 
Registered: Aug 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
I don't understand the first question as it seems to be the exact problem in the thread.

As far as troubleshooting. I've tried the server instances with and without an instance of screen, ruling out screen as an interference. I've tried running it from different users other than root (which I shouldn't have to do.) Not quite sure what else could be problematic.
As far as the "ls -l" test, yep. That works.. The server itself responds perfectly, it simply doesn't allow the issuing of commands it normally would when attached to the game server/script instance. However, it still allows commands that aren't related to the game, like ctrl+a+d to detach from the screen.

Normally when I get a dedicated server to configure, I'll set up Steamcmd, vsftpd, etc. I'll get all my files together, start/update scripts for the server instances. I'll run them all on their own individual screens. However, out of perhaps 8 dedicated servers, this is the first one that has given me this particular error.
 
Old 08-09-2014, 11:04 AM   #6
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Think of it this way bloop. When you as the linux administrator sit at your terminal without being logged into the game server, it works fine.
When you remotely access the game server (ssh), the game server is unresponsive. The remote account works (the ls -l demonstrates it has basic functionality). So what could be wrong?
The games server apparently has it's own accounts, your not logging into one of them when accessing locally, perhaps you need to do that if you're accessing remotely. That would make sense, otherwise why would the game server have an administrative user access control system at all (which it apparently does).
 
Old 08-09-2014, 02:26 PM   #7
Bloop Bloop
LQ Newbie
 
Registered: Aug 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Welp, problem solved.

To anyone else that might be reading this and having this issue, I guess maybe the srcds_linux script may have been updated or something and requires new libraries.

Code:
yum install libgcc.i686 glibc.i686 zlib.i686 ncurses-libs.i686
Thanks for the help though!

Last edited by Bloop Bloop; 08-09-2014 at 02:27 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal not accepting any commands fuzzdemon Linux - Newbie 8 07-18-2014 06:50 PM
SSH Server Accepting Connections, and then Dropping Them RazielX SUSE / openSUSE 3 10-26-2010 04:21 AM
ssh randomly not accepting my private key reeseslover531 Linux - Server 6 06-06-2010 06:40 PM
something more serious than drivers? not accepting commands... jazzben Linux - Newbie 5 10-12-2004 04:10 PM
Not accepting commands in the Terminal Window Rutnut Linux - Newbie 1 12-13-2000 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration