Remove logic to add SSH key if one exists

This really should be done by another part of the imaging process. We should
not be stepping on keys written by installers such as veewee.
This commit is contained in:
Jordan Tardif 2014-08-20 12:57:29 -04:00
parent 7b49531532
commit c6d265198a
2 changed files with 0 additions and 9 deletions

View File

@ -124,14 +124,6 @@ echo "[*] Deleting sensitive information..."
rm -f /root/{.history,.viminfo}
rm -f /home/*/{.history,.viminfo}
if [ -e $APPLIANCE_SCRIPT_DIR/etc/key ]; then
echo "[*] Adding ssh key..."
mkdir /root/.ssh
chmod 700 /root/.ssh
cp $APPLIANCE_SCRIPT_DIR/etc/key /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys
fi
echo "[*] Setting root password"
if [ -e $APPLIANCE_SCRIPT_DIR/etc/rootpass ]; then
cat $APPLIANCE_SCRIPT_DIR/etc/rootpass | chpasswd -e

View File

@ -1 +0,0 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCXdySu0aFKuSVqzRjpLM4xqxT6r9MCn3Nb3TbSlwh2NfEvx0k4HbolRapobr7CotbsQJS4qECpPXTSGM0Io6TAzAbjXcyNYCsfJ8iM50Spq2iFru/PMHQCQK41WvvKEt4taV3OfESITIYSjvZy/38BqWosu6B672ugdaLCrf/eKygfDYsqZMpbaSW7xtNWjVYaQ5uwrhrnoF5OzBShkzts1fAhKCuPAJTQdWWrM/zFClhVdCTtjO/h0vcz4H+5xmTXFMqRxWLw7Wmgpn+qWxUORABtG4fncYtVzu9KzQ5ik0yoC5eNLHcw5k4mGJDRHUwN5RglSPaEH63ub1gvAr+J root@xkvm10294