Home›Java›Mods›SFTPServerPlugin
SFTP Server Plugin for Minecraft

A Minecraft plugin that runs an embedded SFTP server, allowing secure file transfer access to your server files.

Features

• Embedded SFTP Server: Uses Apache SSHD library for secure file transfers
• Configurable Settings: Customize username, password, port, and served directory
• Random Password Generation: Automatically generates secure password on first startup
• Permission-Based Access: Only users with specific permission can view credentials
• Dynamic Configuration: Change settings without server restart using commands
• Shadow JAR: All dependencies bundled in a single plugin file

Commands

• /sftpcredentials - View SFTP server credentials (requires sftpserver.viewcredentials permission)
• Aliases: /sftpcred, /sftpinfo

• /sftpconfig <key> <value> - Modify SFTP server configuration (requires sftpserver.config permission)
• Available keys: port, username, password, host, serve-directory
• Examples:
- /sftpconfig port 2223 - Change SFTP port
- /sftpconfig username admin - Change username
- /sftpconfig password mynewpass - Change password
- /sftpconfig host 127.0.0.1 - Change bind address
- /sftpconfig serve-directory world - Change served directory
• Note: Changes require /sftpreload to take effect

• /sftpreload - Reload SFTP server with updated configuration (requires sftpserver.reload permission)
• Stops current server, reloads config, and restarts with new settings

Permissions

• sftpserver.viewcredentials - Allows viewing SFTP server credentials (default: op)
• sftpserver.config - Allows modifying SFTP server configuration (default: op)
• sftpserver.reload - Allows reloading SFTP server (default: op)

Installation

1. Place the built JAR file in your server's plugins/ directory
2. Restart the server
3. Check console for startup message and generated password
4. Use /sftpcredentials command to view connection details

Usage

1. Connect to your server using any SFTP client (FileZilla, WinSCP, etc.)
2. Use the credentials shown by /sftpcredentials command
3. Default connection: sftp://your-server-ip:2222

Security Notes

• The generated password is 16 characters with special characters
• Only SFTP subsystem is enabled (no shell access)
• Consider changing the default username and port for production use


Version Compatibility

This plugin is designed to work across most Minecraft versions (1.8.x - 1.20.x) as it uses only basic Bukkit APIs and doesn't depend on Minecraft-specific game mechanics. It's compatible with:
• Paper/Spigot/CraftBukkit servers
• Java 17+
• Any server with standard Bukkit API implementation
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

SFTPServerPlugin is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 38 times (via Spigot). Download it and open it directly in the game.

Explore more