Skip to content

Instantly share code, notes, and snippets.

@demiurg
Last active November 29, 2018 16:50
Show Gist options
  • Save demiurg/7620b03305859448c99ec22291071512 to your computer and use it in GitHub Desktop.
Save demiurg/7620b03305859448c99ec22291071512 to your computer and use it in GitHub Desktop.
authorizekoba.sh
set -e
ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ""
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDC5yHa4u65Vv3UORt0p6PXKQbUCzTNX+d+qBzJvnTUrFGOatIZP4XQ7lfh7qu2DI+IO98FPZoy05ZPKGYwSR9/aOdHxA1w+gwOeXMc4M/M9naGbNXAD/DkLxMY7vwG6cDDCHaF7iUQ4hlrynZ9o/riefpijlczFqjAEJgtGU63YgQm4bQPHkx2P0nTd6TFSWku6CfyfqWR0xotWcw5p5kaUgoTldxv1mixIJ3FKzlgSZu6RpdPcapWIcsbPlg9+OxBFYbTq5CtOaR7V522pREINmasckMIYvuF0av7U6A0UBhmFVVMmfxra/xkd2Xe3Iwo+w0+laQLCC5goyFB6RlL [email protected]' > ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment