You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
A `rsyncd`/`sshd` server in Docker. You know, for moving files.
4
4
5
-
6
-
### quickstart
5
+
## Quickstart
7
6
8
7
Start a server (both `sshd` and `rsyncd` are supported)
9
8
10
-
```
11
-
$ docker run \
12
-
--name rsync-server \ # Name it
13
-
-p 8000:873 \ # rsyncd port
14
-
-p 9000:22 \ # sshd port
15
-
-e USERNAME=user \ # rsync username
16
-
-e PASSWORD=pass \ # rsync/ssh password
17
-
-v /your/public.key:/root/.ssh/authorized_keys \ # your public key
18
-
axiom/rsync-server
9
+
```shell
10
+
docker run \
11
+
--name rsync-server \
12
+
-p 8000:873 \
13
+
-p 9000:22 \
14
+
-e USERNAME=user \
15
+
-e PASSWORD=pass \
16
+
-v /your/public.key:/root/.ssh/authorized_keys \
17
+
axiom/rsync-server:latest
19
18
```
20
19
21
20
**Warning** If you are exposing services to the internet be sure to change the default password from `pass` by settings the environmental variable `PASSWORD`.
22
21
23
-
####`rsyncd`
22
+
### `rsyncd`
24
23
25
24
Please note that `/volume` is the `rsync` volume pointing to `/data`. The data
26
25
will be at `/data` in the container. Use the `VOLUME` parameter to change the
27
26
destination path in the container. Even when changing `VOLUME`, you will still
28
27
`rsync` to `/volume`. **It is recommended that you always change the default password of `pass` by setting the `PASSWORD` environmental variable, even if you are using key authentication.**
@@ -40,15 +40,15 @@ sent 166 bytes received 39 bytes 136.67 bytes/sec
40
40
total size is 0 speedup is 0.00
41
41
```
42
42
43
-
44
-
#### `sshd`
43
+
### `sshd`
45
44
46
45
Please note that you are connecting as the `root` and not the user specified in
47
46
the `USERNAME` variable. If you don't supply a key file you will be prompted
48
47
for the `PASSWORD`. **It is recommended that you always change the default password of `pass` by setting the `PASSWORD` environmental variable, even if you are using key authentication.**
0 commit comments