A
Admincraft•13mo ago
Moritz

Server Access

Hey. Ive been running a minecraft bedrock Server inside of a docker container and i wondered if there is a possibility for other persons to access the console without using ssh or installing pterodactyl?
65 Replies
Admincraft Meta
Admincraft Meta•13mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by moritzwastaken#0
Moritz
MoritzOP•13mo ago
(ping me)
ProGamingDk
ProGamingDk•13mo ago
Just install pterodactyl if you want multi user access/access control (or any of the other panels with subuser support)
Moritz
MoritzOP•13mo ago
@ProGamingDk did you even read my question I said i dont want to use any panels
ProGamingDk
ProGamingDk•13mo ago
I did, but there's no good alternative. you want a feature that is a big feature of panels
Skullians
Skullians•13mo ago
:eyes_zoom: new discord bot idea is coming to my mind
SilentBot
SilentBot•13mo ago
Without SSH access to enter the container via docker attach <container> or docker exec -it <container> /bin/bash, you're effectively asking for a STDIN/STDOUT/STDERR proxy for docker containers. It is possible to create (hence how Pterodactyl/wings works), but can I understand why you're wanting this? Just a more light weight way of administrating the server or? Would RCON not fulfil this purpose? If you want to restart the server too, this would need to be done via a startup script / setting docker to always-restart the container, as even with a STD* proxy, you wouldn't be able to restart the server without one of these. @Moritz (since you said ping me)
Moritz
MoritzOP•13mo ago
The problem is, i dont want to give the users ssh access because its my homeserver with valuable data on it (bitwarden passwords)
SilentBot
SilentBot•13mo ago
What are you wanting them to be able to do? Simply console access, ability to restart the container, etc?
Moritz
MoritzOP•13mo ago
Just the console access To ban people etc
SilentBot
SilentBot•13mo ago
I would honestly just setup RCON
Skullians
Skullians•13mo ago
^
Moritz
MoritzOP•13mo ago
thanks for your help btw hey skullian
Skullians
Skullians•13mo ago
heya :) quick question if I were to make a discord bot with perms that gave people specific RCON access would you be interested? :Shruge:
Moritz
MoritzOP•13mo ago
yeah sure dm me
Skullians
Skullians•13mo ago
done :)
SilentBot
SilentBot•13mo ago
Doesn't DiscordSRV allow you to do this?
Shadow
Shadow•13mo ago
Yeah it does Though they have a bedrock server which discordsrv wont work for
SilentBot
SilentBot•13mo ago
Thanks, I completely glanced over the fact it was bedrock.
AeonRemnant
AeonRemnant•13mo ago
Yeah you don't. You can do shit like RCON which other people have said, but you don't give access to a server without needing something like SSH, and if you wanted some kind of filter method to choose who can access what you either need a very custom reverse proxy solution with weird setup, or you just use a panel. Or, and here's a neat thing, don't run Vaultwarden on the same server as your game servers that you're exposing to the internet.
abudq
abudq•13mo ago
well, there is one, but its just start or stop server
Moritz
MoritzOP•13mo ago
he has just started coding lol
SilentBot
SilentBot•13mo ago
Should be super easy to do hopefully Docker exposes a websocket of the containers console STD buffers
AeonRemnant
AeonRemnant•13mo ago
Such a bot would need to be mega carefully designed.
SilentBot
SilentBot•13mo ago
Authentication, yeah
AeonRemnant
AeonRemnant•13mo ago
Oh yeah. Wouldn't trust just Discord auth either since most people are turbo stupid with their passwords and the last thing you want is someone with access falling for an obvious phishing scam and getting your servers crashed.
abudq
abudq•13mo ago
oh lol
SilentBot
SilentBot•13mo ago
I was honestly just going to throw together a light weight app which wraps the websocket in xterm.js with auth as it seems easy enough to do.
AeonRemnant
AeonRemnant•13mo ago
How're you gonna do auth? And how're you gonna impose limits?
SilentBot
SilentBot•13mo ago
auth would be just standard user/pw using bcrypt, with just lockouts after a few failed attempts
AeonRemnant
AeonRemnant•13mo ago
:PepeYikes:
SilentBot
SilentBot•13mo ago
What do you mean by limits, as in what somebody can run?
AeonRemnant
AeonRemnant•13mo ago
Yeeeahhh... Absolutely, what? They're getting attach access to a docker container.
SilentBot
SilentBot•13mo ago
Wanna add to what you mean by this? They are getting access as if they attached, that would be the point of it.
AeonRemnant
AeonRemnant•13mo ago
That's still root for the MC server. One fuckoff scary thing to hold behind the infinitely flimsy walls of 'user password creation'. Sorry but John McJohnface password password isn't something I want having attach via discord.
SilentBot
SilentBot•13mo ago
It's quite literally no different than pterodactyl, adding 2fa** would be super easy.
AeonRemnant
AeonRemnant•13mo ago
Ptero I can wrap behind Authentik and Caddy. That I trust for prod.
SilentBot
SilentBot•13mo ago
And this is a simple http server /w websockets and auth, you think that couldn't too?
AeonRemnant
AeonRemnant•13mo ago
It can if you do it, most won't themselves. :Sadge: Though I'd very much love passwordless. End users are not trustworthy with making passwords damnit.
SilentBot
SilentBot•13mo ago
I don't disagree with your comments, in my mind this was just going to be Pterodactyl without everything but the console effectively.
Shadow
Shadow•13mo ago
12345678
SilentBot
SilentBot•13mo ago
So same authentication scheme, etc.
AeonRemnant
AeonRemnant•13mo ago
Shadow
Shadow•13mo ago
thats the u/admincraft-modteam account password fyi
SilentBot
SilentBot•13mo ago
:HACKERMANS:
Shadow
Shadow•13mo ago
no one likes us tho
No description
AeonRemnant
AeonRemnant•13mo ago
But really though, passwordless. Please. More things need to just remove the apparently infinite burden of a goddamn password manager from the end user. It's horrific the state we're in.
Discount Milk
Discount Milk•13mo ago
There's no security on rcon FYI. No logging on who is doing what commands. Any staff member would be able to do things without being able to track who it was.
Skullians
Skullians•13mo ago
yup and fun fact looks like vanilla bedrock servers don't have RCON built in
AeonRemnant
AeonRemnant•13mo ago
Not surprised at all. Pretty sure Java doesn't have it either. Most use the itzg image and that has it included.
Discount Milk
Discount Milk•13mo ago
No, rcon exists in Java natively.
AeonRemnant
AeonRemnant•13mo ago
Thought it wasn't actually enabled in MC though?
Skullians
Skullians•13mo ago
it's not enabled by default in server.properties iirc
Snow Kit
Snow Kit•13mo ago
@Moritz I know you said without using ssh, however ssh does have a ForcedCommand option, which could be used to override the shell the user would normally get with just a docker attach command. This would ensure that all console input features would work properly. there are a few things you'll need to do to ensure the user can't use x11 forwarding or sftp/scp, however the user should ideally have their own untrusted account
Discount Milk
Discount Milk•13mo ago
Not enabled by default, but it exists.
AeonRemnant
AeonRemnant•13mo ago
I did word that badly. Honestly though this is getting to the point of a stupid amount of effort versus just using like... a panel. :THONK:
Discount Milk
Discount Milk•13mo ago
Bedrock doesn't seem to have rcon at all
Skullians
Skullians•13mo ago
^ i think pocketmine does though
Snow Kit
Snow Kit•13mo ago
honestly though, if it's just for the purpose of banning people, then just have them log into the game to do it. Java and bedrock both take less than like 30 seconds to start and join a server believe java even has a launch arg you can set to make the game instantly log you into a server, skipping the main menu/server list page
ProGamingDk
ProGamingDk•13mo ago
cant you just leave the attached docker container after you got forced to run the command
Snow Kit
Snow Kit•13mo ago
from my understanding, if the ForcedCommand exits, ssh disconnects. Believe it refers to forcing the ssh command that automatically is ran but I haven't tried it at all
Discount Milk
Discount Milk•13mo ago
Rcon isn't an option because he runs a bedrock server :FrogeBIGEYES:
Skullians
Skullians•13mo ago
👀 I didn’t know bedrock servers didn’t have RCON built in :KEKW:
AeonRemnant
AeonRemnant•13mo ago
I mean if you're Microsoft do you build it in? Can't see a whole heap of reason to do so. Maybe for server admins, but then again maybe not.
Skullians
Skullians•13mo ago
fair enough

Did you find this page helpful?