diff --git a/baseimage/createEC2Image b/baseimage/createEC2Image index 4ee4fbb30..323c9a18e 100755 --- a/baseimage/createEC2Image +++ b/baseimage/createEC2Image @@ -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