- Install Docker.
- You can change port 2222 to any in docker-compose.yml file.
- You can change user ('foo') and password ('pass') to any in docker-compose.yml file.
- Run:
docker-compose up -d
- Connection example for PHP (on Windows):
$sftp = new SFTP('host.docker.internal', 2222);
$sftp->login('foo', 'pass')