Skip to content
Snippets Groups Projects
Commit 8f9d172e authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

configuration of sshd added

parent 4d24d4c9
Branches
No related tags found
No related merge requests found
......@@ -14,3 +14,18 @@ then
. /opt/runinstaller.sh
fi
beginLogEntry "install fstab in target"
cp /tmp/fstab.local /target/etc/fstab
finishLogEntry "done"
beginLogEntry "configure ssh in target"
sed -i -e 's/^#PermitRootLogin.*/PermitRootLogin prohibit-password/g' /target/etc/ssh/sshd_config
sed -i -e 's/^#AuthorizedKeysFile/AuthorizedKeysFile/g' /target/etc/ssh/sshd_config
sed -i -e 's/^\(AuthorizedKeysFile.*\)$/\1 \/etc\/ssh\/authorized_keys/g' /target/etc/ssh/sshd_config
finishLogEntry "done"
beginLogEntry "install ssh key in target"
cp /opt/ansible.pub /target/etc/ssh/authorized_keys
chmod 644 /target/etc/sshd/authorized_keys
finishLogEntry "done"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment