When we give you a minecraft namespace, three primary folders may appear. One would be for your servers. The second, for your bungee or proxy servers. The third, your web directory.
In order to access these files, you'll need an SSH key. This key will be used to authenticate you to your files. This works better than a password, as often malicious users will try to brute force their way into your account by using a script on a remote machine.
Generating a key
The mcsh cli package comes with
ssh-keygen. You can use this to generate a key.
[Enter]when asked “Enter file in which to save the key” to use the default location
- Type in a passphrase, or leave it blank (you won't be able to see what you type)
- Type in the same passphrase again, or hit enter if it was blank
Success! You now have a ssh key ready to use with your server.
Enabling the SFTP server
For file access, you will need to spin up an ssh server. We make this process similar to a minecraft server.
What you will need:
- Your SFTP public key. The location of this was shown in the output. In my example, it was located at
- A username you wish to use
Let's create the SFTP server.
apiVersion: mcserverhosting.net/v2 kind: SFTPServer metadata: name: example-sftpserver spec: online: true users: - groupID: 1000 publicKey: your-ssh-public-key userID: 1001 username: your-username
- Copy the file above and save it as sftp-server.yml.
- Open up your
id_rsa.pubfile inside of notepad.
- Copy the contents of
- Paste the contents of that public key in place of
- Finally, run
mcsh create -f sftp-server.yml
Your SFTP server will come online!
From here, you have a few ways to access your files.
- From the WinSCP client
- From Window's exporer (coming soon)