Skip to content

Instantly share code, notes, and snippets.

@intrepidws
Last active December 30, 2019 21:55
Show Gist options
  • Select an option

  • Save intrepidws/f8703f77282fb0e8e85a5a2ca26fe280 to your computer and use it in GitHub Desktop.

Select an option

Save intrepidws/f8703f77282fb0e8e85a5a2ca26fe280 to your computer and use it in GitHub Desktop.

Revisions

  1. intrepidws revised this gist Dec 30, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Generate-SSH-Key.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    **Should use password**
    **!!! SHOULD USE PASSWORD !!!**

    Generate an SSH key, using PEM (and not the new default RFC4716):
    `ssh-keygen -m PEM -t rsa -b 4096 -C "[email protected]"`
  2. intrepidws revised this gist Dec 30, 2019. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Generate-SSH-Key.md
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,7 @@ Generate an SSH key, using PEM (and not the new default RFC4716):
    `ssh-keygen -m PEM -t rsa -b 4096 -C "[email protected]"`

    For an older key that needs to be converted to PEM, run this:
    `ssh-keygen -p -m PEM -f ~/.ssh/id_rsa`
    `ssh-keygen -p -m PEM -f ~/.ssh/id_rsa`

    To copy the public key to the clipboard, do:
    `pbcopy < ~/.ssh/id_rsa.pub`
  3. intrepidws renamed this gist Oct 17, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. intrepidws revised this gist Oct 17, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Generate SSH Key
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    *Should use password*
    **Should use password**

    Generate an SSH key, using PEM (and not the new default RFC4716):
    `ssh-keygen -m PEM -t rsa -b 4096 -C "[email protected]"`
  5. intrepidws revised this gist Oct 17, 2019. 2 changed files with 7 additions and 7 deletions.
    7 changes: 7 additions & 0 deletions Generate SSH Key
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    *Should use password*

    Generate an SSH key, using PEM (and not the new default RFC4716):
    `ssh-keygen -m PEM -t rsa -b 4096 -C "[email protected]"`

    For an older key that needs to be converted to PEM, run this:
    `ssh-keygen -p -m PEM -f ~/.ssh/id_rsa`
    7 changes: 0 additions & 7 deletions SSH Key for Medis
    Original file line number Diff line number Diff line change
    @@ -1,7 +0,0 @@
    For Medis, I think the SSH key cannot have a password? Or it might just need to be the PEM version.

    First Run
    `ssh-keygen -t rsa -b 4096 -C "[email protected]"`

    Then Run
    `ssh-keygen -p -m PEM -f ~/.ssh/id_rsa`
  6. intrepidws revised this gist Oct 17, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion SSH Key for Medis
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    For Medis, I think the SSH key cannot have a password
    For Medis, I think the SSH key cannot have a password? Or it might just need to be the PEM version.

    First Run
    `ssh-keygen -t rsa -b 4096 -C "[email protected]"`
  7. intrepidws created this gist Oct 17, 2019.
    7 changes: 7 additions & 0 deletions SSH Key for Medis
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    For Medis, I think the SSH key cannot have a password

    First Run
    `ssh-keygen -t rsa -b 4096 -C "[email protected]"`

    Then Run
    `ssh-keygen -p -m PEM -f ~/.ssh/id_rsa`