Skip to content

Instantly share code, notes, and snippets.

@sambos
Created May 18, 2018 21:12
Show Gist options
  • Save sambos/c969ddc598c959f84d060842ff75645b to your computer and use it in GitHub Desktop.
Save sambos/c969ddc598c959f84d060842ff75645b to your computer and use it in GitHub Desktop.
copy ssh keys
==> copy ssh keys between servers (edge <--> neo4j)
http://www.commandlinefu.com/commands/view/188/copy-your-ssh-public-key-to-a-server-from-a-machine-that-doesnt-have-ssh-copy-id
cat /home/user/id_neo4j_rsa.pub | ssh user@host.org 'cat >> ~/.ssh/authorized_keys'
cat /home/user/id_rsa.pub | ssh user@host.org 'cat >> ~/.ssh/authorized_keys'
==> generate keytab (if not available)
ktutil: addent -password -p user@host.org -k 1 -e rc4-hmac
Password for user@host.org:
ktutil: wkt /home/user/user.keytab
ktutil: quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment