mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-24 12:59:24 -05:00
Update README.md
This commit is contained in:
parent
c16739bba6
commit
34f6dc601b
1 changed files with 5 additions and 8 deletions
11
README.md
11
README.md
|
@ -113,26 +113,23 @@ docker run \
|
||||||
|
|
||||||
This container will generate an ssh-key for OpenSSH at first run. To avoid this, you can map Ed25519 or RSA keys from the host inside the container.
|
This container will generate an ssh-key for OpenSSH at first run. To avoid this, you can map Ed25519 or RSA keys from the host inside the container.
|
||||||
|
|
||||||
### Ed25519 key
|
|
||||||
```
|
```
|
||||||
|
#for ed25519 keys:
|
||||||
docker run \
|
docker run \
|
||||||
-v /host/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key \
|
-v /host/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key \
|
||||||
-v /host/share:/home/foo/share \
|
-v /host/share:/home/foo/share \
|
||||||
-p 2222:22 -d atmoz/sftp \
|
-p 2222:22 -d atmoz/sftp \
|
||||||
foo::1001
|
foo::1001
|
||||||
```
|
#Tip: you can generate an Ed25519 key with this command: `ssh-keygen -t ed25519 -f /host/ssh_host_ed25519_key < /dev/null`
|
||||||
Tip: you can generate an Ed25519 key with this command: `ssh-keygen -t ed25519 -f /host/ssh_host_ed25519_key < /dev/null`
|
|
||||||
|
|
||||||
### RSA key
|
#for rsa keys:
|
||||||
```
|
|
||||||
docker run \
|
docker run \
|
||||||
-v /host/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key \
|
-v /host/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key \
|
||||||
-v /host/share:/home/foo/share \
|
-v /host/share:/home/foo/share \
|
||||||
-p 2222:22 -d atmoz/sftp \
|
-p 2222:22 -d atmoz/sftp \
|
||||||
foo::1001
|
foo::1001
|
||||||
|
#Tip: you can generate an rsa key with this command: `ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key < /dev/null`
|
||||||
```
|
```
|
||||||
Tip: you can generate an Ed25519 key with this command: `ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key < /dev/null`
|
|
||||||
|
|
||||||
|
|
||||||
## Execute custom scripts or applications
|
## Execute custom scripts or applications
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue