Skip to content

Instantly share code, notes, and snippets.

@ypetya
Forked from lalyos/ssh-key-ok.sh
Last active August 29, 2015 14:01
Show Gist options
  • Save ypetya/4d050ed809e85064995a to your computer and use it in GitHub Desktop.
Save ypetya/4d050ed809e85064995a to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p .ssh
chmod 700 .ssh
cat >>~/.ssh/authorized_keys<<EOF
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwI/RmvE2TG+LVUwnJho4i+evr7ZuN8T2xAfffJUNoz5KUHScN0tvOIALCQsNE7iJicUVV1PEUz0pBnWliU+UCsjhHuogbWQ13t/GHxIzmoWZrXcFCMLQ9yHv3yr/1WVyLzPWpKRRDeZ5vSGGnP4wHMpI3qZxUnSNn51VLILdDOutLwtBEpW7QjnlO9gIhipGJIHaPF10WorJGJRoMLzNAb/rRwEKwFXRAI0PwJ46dJs1GkxGEWY8+2WPd6kQ0i3kJzEFmD08kSsHPgo8RPuCmWGSoDWY5mBReIEWNyH1v/rQLSnfWR2OfRihIe7J49UKYur2yX9yzRn1aRw2Y9+R9w== peter.kiss@epam.com
EOF
chmod 644 ~/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment