Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
402d9a5b82 | ||
![]() |
5348221b45 |
1 changed files with 12 additions and 2 deletions
14
README.md
14
README.md
|
@ -26,7 +26,17 @@ this user needs to own the jail directory, make sure to change ownership of the
|
||||||
sudo chown -R fluxsftp:fluxsftp /srv/sftp
|
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***
|
||||||
|
|
||||||
|
## 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
|
## Enable and Start
|
||||||
after you have configured the database you can start the server as follows
|
after you have configured the database you can start the server as follows
|
||||||
|
@ -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"
|
listen_address = "0.0.0.0"
|
||||||
port = 2222
|
port = 2222
|
||||||
jail_dir = "/srv/sftp"
|
jail_dir = "/srv/sftp"
|
||||||
private_key_file = "~/.ssh/flux-sftp"
|
private_key_file = "/etc/flux-sftp/server_key"
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
driver = "sqlite"
|
driver = "sqlite"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue