Build your own SFTP Server using NodeJS

Markus Springer
10 min readAug 2, 2020

NodeJS is awesome isn’t it? You can build basically everything you can imagine, stuff you need stuff you don’t need and stuff you’ve never thought about.

SFTP — Creating a problem that never existed before.

The task was to provide for each customer an own SFTP server with own credentials, tenant based, with backups, fast file transfer, TB of files, scalable…

After some googling I found a neat website which lists all popular SFTP server which are ready to be spin up.

Open SSH Server → sounds like a good idea, so let’s give this a try.

But how do you spin up a SFTP server for each client, how do you manage the shutdown, how do you make sure that no resources are wasted, how do you manage authentication on application level? These were all things I didn’t consider before. So I dig deeper and I found a super cool project by mscdex.

His library https://github.com/mscdex/ssh2 provides an easy way to implement the SFTP protocol with NodeJS with the SSH protocl.

--

--

Markus Springer
Markus Springer

Written by Markus Springer

Senior Software Engineer at Celonis #decacorn with a passion for learning new technologies. #founder #celonaut #engineer #fullstack

Responses (1)