Skip to content

Instantly share code, notes, and snippets.

@jrisch
Created July 23, 2019 06:57
Show Gist options
  • Save jrisch/dd55596df2d14247c7b642ae66528704 to your computer and use it in GitHub Desktop.
Save jrisch/dd55596df2d14247c7b642ae66528704 to your computer and use it in GitHub Desktop.
cat <<EOF > sshkeys/key.sh
#!/bin/bash
mkdir -m 0700 .ssh
wget http://ip-of-rancher-server:8081/id_rsa.pub .ssh/authorized_keys
chmod og-rw .ssh/authorized_keys
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment