From 5348221b458eda2380ff729b046e36b34b737a38 Mon Sep 17 00:00:00 2001 From: RafayAhmad7548 Date: Thu, 10 Jul 2025 20:14:00 +0500 Subject: [PATCH 1/2] slight update to readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c356e8c..0f5903f 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ this user needs to own the jail directory, make sure to change ownership of the sudo chown -R fluxsftp:fluxsftp /srv/sftp ``` -***When u register a new user make sure to create a directory for them in the jail directory and make sure it is owned by the fluxsftp user*** +***When you register a new user make sure to create a directory for them in the jail directory and make sure it is owned by the fluxsftp user*** ## Enable and Start after you have configured the database you can start the server as follows From 402d9a5b82bf11741a0d3cfb70dfc07abb2b3c8f Mon Sep 17 00:00:00 2001 From: RafayAhmad7548 Date: Thu, 10 Jul 2025 20:32:08 +0500 Subject: [PATCH 2/2] key setup readme --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0f5903f..271945d 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,16 @@ sudo chown -R fluxsftp:fluxsftp /srv/sftp ***When you register a new user make sure to create a directory for them in the jail directory and make sure it is owned by the fluxsftp user*** +## Server Key +generate a key for the server as follows +```bash +sudo ssh-keygen -t ed25519 -f /etc/flux-sftp/server_key +``` +also make sure that the server's private key is owned by fluxsftp +```bash +sudo chown fluxsftp:fluxsftp /etc/flux-sftp/server_key +``` + ## Enable and Start after you have configured the database you can start the server as follows ```bash @@ -46,7 +56,7 @@ The configuration file is located at `/etc/flux-sftp/config.toml`, here is the d listen_address = "0.0.0.0" port = 2222 jail_dir = "/srv/sftp" -private_key_file = "~/.ssh/flux-sftp" +private_key_file = "/etc/flux-sftp/server_key" [database] driver = "sqlite"