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.

quantomworks
Computer Craft is an awesome mod by the way.

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:

  1. Your username (usually mcshadmin)
  2. Your id_rsa file (attached in your welcome email)
  3. Your SSH port (in your email)
  4. PuTTy
  5. PuTTyGen

Let’s get started.

puttygen.exe

First, we’ll go about converting the key from OpenSSH to a PuTTy format.

  1. Open PuTTyGen
  2. Conversions > Import Key
  3. Select the id_rsa file
  4. Hit “Save Private Key”
  5. 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.

Let’s login

Putty.exe — Launch Screen

With the key converted, we’re ready to get started.

  1. Type in yourusername@na.mcserverhosting.net inside the Host Name field
  2. Place your Port in the Port field
  3. On the left panel, click the [ + ] sign next to SSH
  4. Select Auth (and not the plus sign this time)
  5. On the right panel, at the bottom, select Browse
  6. Select your key file
  7. Return to the home screen by clicking on “Session”
  8. Type in a name for this session, such as your server ID and hit Save
  9. 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.

Example output:

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.
list
[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:

  1. WinSCP
  2. The saved session from the first step.
WinSCP’s home screen

WinSCP works in tandem with PuTTy in that you can import sessions already saved. With that in mind, let’s login quickly!

  1. From the home screen, select Tools
  2. Click Import Sites
  3. Check your saved session from the PuTTy steps (if you’re following along, it's your server ID)
  4. Click OK
  5. Select the server from the left panel
  6. 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

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade