2 Commits

Author SHA1 Message Date
f3e032cf54 Fixed ssh key generation issue (#1) 2021-12-20 01:23:36 +01:00
9f29b1b8dd Updated install instructions 2021-12-19 20:21:37 +01:00
2 changed files with 9 additions and 14 deletions

View File

@ -17,15 +17,15 @@ build-container:
fi
cp -rf $(_BUILDDIR)/x86_64-unknown-linux-musl/$(shell if $(DEBUG); then echo debug; else echo release; fi)/configure $(_BUILDDIR)
build-extra: SSHPASS:=$(shell LC_ALL=C tr -dc 'A-Za-z0-9!#$%&()*,-./:<=>?@[\]^_{}~' < /dev/urandom | head -c 18 ; echo)
build-extra: SSHPASS:=$(shell LC_ALL=C tr -dc 'A-Za-z0-9!#$%&()*,-.:<=>?@[]^_{}~' < /dev/urandom | head -c 18 ; echo)
build-extra:
if [ "$(_BUILDDIR)" != "$(shell realpath .)/" ]; then\
@if [ "$(_BUILDDIR)" != "$(shell realpath .)/" ]; then\
cp -rf LICENSE $(_BUILDDIR)/LICENSE;\
cp -rf man/ $(_BUILDDIR);\
fi
yes | ssh-keygen -t ed25519 -f $(_BUILDDIR)/docker4ssh.key -N "$(SSHPASS)" -b 4096 > /dev/null
cp -rf extra/docker4ssh.conf $(_BUILDDIR)
sed -i 's|Passphrase = ""|Passphrase = "$(SSHPASS)"|' $(_BUILDDIR)/docker4ssh.conf
sed -i "s|Passphrase = \"\"|Passphrase = \"$(SSHPASS)\"|" $(_BUILDDIR)/docker4ssh.conf
cat extra/database.sql | sqlite3 $(_BUILDDIR)/docker4ssh.sqlite3
mkdir -p $(_BUILDDIR)/profile/ && cp -f extra/profile.conf $(_BUILDDIR)/profile/

View File

@ -47,17 +47,11 @@
For every install method your OS **must** be linux and docker has to be installed.
- Download from the latest release (currently only x64 architecture supported)
- Download `docker4ssh-<version>.tar.gz` from the [latest release](https://github.com/ByteDream/docker4ssh/releases/latest)
- Install it
- Into your root directory (recommended)
- From the latest release (currently only x64 architecture supported)
Replace the `RELEASE` value in the following oneliner with the latest release [version](https://github.com/ByteDream/docker4ssh/releases/latest).
```shell
$ sudo tar -xvzf docker4ssh-<version>.tar.gz -C /
```
- To the same directory
```shell
$ sudo tar -xvzf docker4ssh-<version>.tar.gz
```
$ RELEASE=<latest version> curl -L https://github.com/ByteDream/docker4ssh/releases/download/v$RELEASE/docker4ssh-$RELEASE.tar.gz | tar -xvzf - -C /
- Building from source
Before start installing, make sure you have to following things ready:
@ -69,6 +63,7 @@ For every install method your OS **must** be linux and docker has to be installe
```shell
$ git clone https://github.com/ByteDream/docker4ssh
$ cd docker4ssh
$ make build
$ make install
```