Skip to content

Commit

Permalink
Update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaff committed Dec 14, 2015
1 parent dc2a326 commit dfe3413
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ docker run --rm -it -p 2222:22 -v ~/my_ssh_keys:/root/.ssh/ gaff/alpine-sshd
```

```
docker run --rm -it -p 2222:22 -e AUTHORIZED_KEY="`cat authorized_keys`" gaff/alpine-sshd
docker run --rm -it -p 2222:22 -e AUTHORIZED_KEY="`cat id_rsa.pub`" gaff/alpine-sshd
```


Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ apk add openssh rsync
mkdir -p ~root/.ssh && chmod 700 ~root/.ssh/
sed -i '/AuthorizedKeysFile/s/^/#/' /etc/ssh/sshd_config
echo -e "Port 22\n" >> /etc/ssh/sshd_config

#Add an extra AuthorizedKeysFile so that people can hard-bake their own keys if they wish.
echo -e "AuthorizedKeysFile .ssh/authorized_keys /authorized_keys\n" >> /etc/ssh/sshd_config
echo -e "PasswordAuthentication no" >> /etc/ssh/sshd_config
Expand Down

0 comments on commit dfe3413

Please sign in to comment.