fix ssh key to use ip address and remove some unneeded code