explicit path refix for ssh-keygen

This commit is contained in:
Jérémy Lecour 2020-08-19 13:58:03 +02:00 committed by Jérémy Lecour
parent 1063dfe74d
commit ea9aac50a3
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ setup_jail_chroot() {
touch ./var/log/lastlog ./var/log/wtmp ./run/utmp
info "2 - Copying essential files"
ssh-keygen -A -f .
ssh-keygen -A -f "${jail_path}"
touch "./${AUTHORIZED_KEYS}"
chmod 600 "./${AUTHORIZED_KEYS}"
cp "${passwd}" ./etc