Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # simple attempt to get the user ssh key using the meta-data service
- mkdir -p /root/.ssh
- echo >> /root/.ssh/authorized_keys
- curl http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key | grep 'ssh-rsa' >> /root/.ssh/authorized_keys
- echo "AUTHORIZED_KEYS:"
- echo "************************"
- cat /root/.ssh/authorized_keys
- echo "************************"
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment