Skip to content

Instantly share code, notes, and snippets.

@zeloc
Forked from grenade/01-generate-ed25519-ssh-key.sh
Created December 29, 2018 17:03

Revisions

  1. @grenade grenade revised this gist May 17, 2017. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions ssh-key-add.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/id_rsa
    ssh-add ~/.ssh/github_rsa
    ssh-add ~/.ssh/mozilla_rsa
  2. @grenade grenade revised this gist May 17, 2017. 2 changed files with 10 additions and 4 deletions.
    4 changes: 3 additions & 1 deletion generate-ssh-key.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    ssh-keygen -t rsa -f github_rsa -N '' -C "[email protected]"
    ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
    ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
    ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa
    10 changes: 7 additions & 3 deletions ssh-key-permissions.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,10 @@
    chmod 700 ~/.ssh
    chmod 600 ~/.ssh/id_rsa
    chmod 644 ~/.ssh/id_rsa.pub
    chmod 644 ~/.ssh/authorized_keys
    chmod 644 ~/.ssh/known_hosts
    chmod 644 ~/.ssh/config
    chmod 644 ~/.ssh/config
    chmod 600 ~/.ssh/id_rsa
    chmod 644 ~/.ssh/id_rsa.pub
    chmod 600 ~/.ssh/github_rsa
    chmod 644 ~/.ssh/github_rsa.pub
    chmod 600 ~/.ssh/mozilla_rsa
    chmod 644 ~/.ssh/mozilla_rsa.pub
  3. @grenade grenade revised this gist Jan 6, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion ssh-key-permissions.sh
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,5 @@ chmod 700 ~/.ssh
    chmod 600 ~/.ssh/id_rsa
    chmod 644 ~/.ssh/id_rsa.pub
    chmod 644 ~/.ssh/authorized_keys
    chmod 644 ~/.ssh/known_hosts
    chmod 644 ~/.ssh/known_hosts
    chmod 644 ~/.ssh/config
  4. @grenade grenade revised this gist Jun 5, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion generate-ssh-key.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    ssh-keygen -t rsa -f github_rsa -N '' -C "email@example.com"
    ssh-keygen -t rsa -f github_rsa -N '' -C "rthijssen@gmail.com"
  5. @grenade grenade revised this gist Feb 27, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions generate-ssh-key.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ssh-keygen -t rsa -f github_rsa -N '' -C "[email protected]"
  6. @grenade grenade created this gist Aug 23, 2013.
    5 changes: 5 additions & 0 deletions ssh-key-permissions.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    chmod 700 ~/.ssh
    chmod 600 ~/.ssh/id_rsa
    chmod 644 ~/.ssh/id_rsa.pub
    chmod 644 ~/.ssh/authorized_keys
    chmod 644 ~/.ssh/known_hosts