Example SFTP server implementation

In order to use this example you will need an RSA key.

On linux-like systems with openssh installed, you can use the command:

ssh-keygen -t rsa -f id_rsa

Then you will be able to run the sftp-server command in the current directory.



An example SFTP server implementation using the golang SSH package. Serves the whole filesystem visible to the user, and has a hard-coded username and password, so not for real use!

Source Files