Skip to content

Commit

Permalink
doc(sshd_config): update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
FXHibon committed Jul 17, 2023
1 parent da094d5 commit 1599bc9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ sftp:
command: foo:pass:1001
```

### Overriding the default port

```
docker run -e SSHD_PORT=1234 -p 1234:1234 -d atmoz/sftp foo:pass:::upload
```

### Logging in

The OpenSSH server runs by default on port 22, and in this example, we are forwarding the container's port 22 to the host's port 2222. To log in with the OpenSSH client, run: `sftp -P 2222 foo@<host-ip>`
Expand Down

0 comments on commit 1599bc9

Please sign in to comment.