MCSH — How To SSH
For users already familiar with SSH, the hostname is na.mcserverhosting.net. The port and key (in OpenSSH format) are in your email.
With SSH, you can access your Minecraft Server’s console (on MSCH based servers), files and folders. Edit them right from your desktop as well! We’ll go over a few programs to get you started.
What you’ll need:
- Your username (usually
- Your id_rsa file (attached in your welcome email)
- Your SSH port (in your email)
Let’s get started.
First, we’ll go about converting the key from OpenSSH to a PuTTy format.
- Open PuTTyGen
- Conversions > Import Key
- Select the id_rsa file
- Hit “Save Private Key”
- You’ll be asked if it’s ok to save without a passphrase. You can hit yes or type in a passphrase. You’ll have to use it later though.
With the key converted, we’re ready to get started.
- Type in
email@example.com the Host Name field
- Place your Port in the Port field
- On the left panel, click the [ + ] sign next to SSH
- Select Auth (and not the plus sign this time)
- On the right panel, at the bottom, select Browse
- Select your key file
- Return to the home screen by clicking on “Session”
- Type in a name for this session, such as your server ID and hit Save
- Hit Open! (and yes when it asks you about the new host)
A window will open! If all goes well and you have the right key selected, you’ll be in your server!
Let’s go over a few commands
kubectl get pods
This will get your pods! Meaning, your servers with us! It will return every ID from your MC servers to your backups ran by us.
trendy-rodent-ssh-0:~$ kubectl get pods
NAME READY STATUS RESTARTS AGE
backup-1565398200-tjqpp 0/1 Completed 0 32h
backup-1565441400-rgbpw 0/1 Completed 0 20h
backup-1565484600-m5tnt 0/1 Completed 0 8h
trendy-rodent-server-0 1/1 Running 0 8h
trendy-rodent-ssh-0 1/1 Running 0 3d10h
update-notify-qmfnp 0/1 Completed 0 5d9h
From here, we know the pod name of the Minecraft server. It’s
trendy-rodent-server-0! So lets
attach to that server’s console.
kubectl attach -it trendy-rodent-server-0
You’re attached to your console! Try running a command, like
list to list your players or
op sfxworks to OP your friendly cluster admin.
trendy-rodent-ssh-0:~$ kubectl attach -it trendy-rodent-server-0
Defaulting container name to mc-server.
If you don't see a command prompt, try pressing enter.
[08:57:36] [Server thread/INFO] [minecraft/DedicatedServer]: There are 0/20 players online:
Now, let's access your files.
What you’ll need from here:
- The saved session from the first step.
WinSCP works in tandem with PuTTy in that you can import sessions already saved. With that in mind, let’s login quickly!
- From the home screen, select Tools
- Click Import Sites
- Check your saved session from the PuTTy steps (if you’re following along, it's your server ID)
- Click OK
- Select the server from the left panel
- Hit Login!
You’ll see your server’s
minecraft folder on the right, and your files on the left.
Note, if you require a different version of Forge or want to switch server types altogether, let us know. We will do this for you.
That’s it! You know the basics! If you have any questions, reach out to us on discord at https://mcserverhosting.net/discord