Removing ssh keys has to be done with ssh202

This commit is contained in:
Johannes Zellner
2016-08-11 20:45:49 +02:00
parent 6d5dc0d5c4
commit 30074ae961

View File

@@ -113,7 +113,7 @@ if ! $ssh22 "root@${server_ip}" "/bin/bash /home/ubuntu/initializeBaseUbuntuImag
fi
echo "Strip ssh key"
if ! $ssh22 "root@${server_ip}" "rm /root/.ssh/authorized_keys"; then
if ! $ssh202 "root@${server_ip}" "rm /root/.ssh/authorized_keys"; then
echo "Unable to remove ssh access"
echo "Make sure to cleanup the ec2 instance ${instance_id}"
exit 1