Last active
August 29, 2015 14:07
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 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" | |
Author
Author
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
After I ran the
ssh-keygenand 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.