Skip to content

Instantly share code, notes, and snippets.

@tjluoma
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save tjluoma/744def92b57c231cb907 to your computer and use it in GitHub Desktop.

Select an option

Save tjluoma/744def92b57c231cb907 to your computer and use it in GitHub Desktop.
TYPE must be either ‘rsa' or ‘dsa'. FILENAME can be whatever you want, but I suggest making it clear a) which device this is for and b) which app this is for
## The basic format of the `ssh-keygen` command is something like this:
# ssh-keygen -t TYPE -f FILENAME -C "COMMENT"
## Here's What I Used
ssh-keygen -t rsa -f id_rsa_prompt_iphone5s -C "TJ Luoma iPhone 5s"
@tjluoma
Copy link
Author

tjluoma commented Oct 8, 2014

After I ran the ssh-keygen and entered the passphrase, I was left with two files: one was “id_rsa_prompt_iphone5s” (That’s the private key) and the other was “ id_rsa_prompt_iphone5s.pub” (That’s the public key).

The private key needs to be added to Prompt on your iOS device.

The public key should be added to ~/.ssh/authorized_keys on any Macs that you want to be able to ssh into without using your OS X password.

@tjluoma
Copy link
Author

tjluoma commented Oct 8, 2014

Note: You can also create the public/private key right on your iOS device from inside Prompt 2, which is much easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment