-
-
Save manuelramireztech/ef8801c3e955ec9a88611f6971683ea9 to your computer and use it in GitHub Desktop.
Revisions
-
JoaquimLey revised this gist
Aug 8, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ## Generating a new ssh-key Open Terminal. Paste the text below, substituting in your GitHub email address. @@ -10,7 +10,7 @@ Paste the text below, substituting in your GitHub email address. 1. When you're prompted to `Enter a file in which to save the key` press `Enter` to accept the default file location. Enter the file in which to save the key (you can press ENTER for default path): `(/Users/you/.ssh/id_rsa): [Press enter]` -
JoaquimLey renamed this gist
Aug 15, 2016 . 1 changed file with 9 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,9 +8,13 @@ Paste the text below, substituting in your GitHub email address. ### This creates a new ssh key, using the provided email as a label `Generating public/private rsa key pair.` 1. When you're prompted to `Enter a file in which to save the key` press `Enter` to accept the default file location. Enter a file in which to save the key: `(/Users/you/.ssh/id_rsa): [Press enter]` At the prompt, type a secure passphrase. `Enter passphrase (empty for no passphrase): [Type a passphrase]` @@ -24,12 +28,11 @@ Before adding a new SSH key to the ssh-agent, you should have checked for existi Ensure ssh-agent is enabled: ### start the ssh-agent in the background `eval "$(ssh-agent -s)"` _Agent pid 59566_ #### Add your SSH key to the ssh-agent. If you used an existing SSH key rather than generating a new SSH key, you'll need to replace id_rsa in the command with the name of your existing private key file. `$ ssh-add ~/.ssh/id_rsa` -
JoaquimLey revised this gist
Aug 15, 2016 . 2 changed files with 35 additions and 38 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ ##Generating a new ssh-key Open Terminal. Paste the text below, substituting in your GitHub email address. `ssh-keygen -t rsa -b 4096 -C "[email protected]"` ### This creates a new ssh key, using the provided email as a label `Generating public/private rsa key pair.` 1. When you're prompted to **_Enter a file in which to save the key_** press Enter. This accepts the default file location. 2. Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter] At the prompt, type a secure passphrase. `Enter passphrase (empty for no passphrase): [Type a passphrase]` `Enter same passphrase again: [Type passphrase again]` Adding your SSH key to the ssh-agent ------------------------------------ Before adding a new SSH key to the ssh-agent, you should have checked for existing SSH keys and generated a new SSH key. Ensure ssh-agent is enabled: ### start the ssh-agent in the background 1. `eval "$(ssh-agent -s)"` Agent pid 59566 #### Add your SSH key to the ssh-agent. If you used an existing SSH key rather than generating a new SSH key, you'll need to replace id_rsa in the command with the name of your existing private key file. 2. `$ ssh-add ~/.ssh/id_rsa` 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 charactersOriginal file line number Diff line number Diff line change @@ -1,38 +0,0 @@ -
JoaquimLey created this gist
Aug 11, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,38 @@ Generating a new ssh-key ------------------------ Open Terminal. Paste the text below, substituting in your GitHub email address. 1. ssh-keygen -t rsa -b 4096 -C "[email protected]" # Creates a new ssh key, using the provided email as a label Generating public/private rsa key pair. When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location. 2. Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter] At the prompt, type a secure passphrase. For more information, see "Working with SSH key passphrases". Enter passphrase (empty for no passphrase): [Type a passphrase] Enter same passphrase again: [Type passphrase again] Adding your SSH key to the ssh-agent ------------------------------------ Before adding a new SSH key to the ssh-agent, you should have checked for existing SSH keys and generated a new SSH key. Ensure ssh-agent is enabled: # start the ssh-agent in the background 1. eval "$(ssh-agent -s)" Agent pid 59566 # Add your SSH key to the ssh-agent. If you used an existing SSH key rather than generating a new SSH key, you'll need to replace id_rsa in the command with the name of your existing private key file. 2. $ ssh-add ~/.ssh/id_rsa