Skip to content

Instantly share code, notes, and snippets.

@undefinedzain
Forked from SunDi3yansyah/ssh.md
Last active May 17, 2017 23:23
Show Gist options
  • Select an option

  • Save undefinedzain/6c7dad87ca10a3a8032f802e15663a4f to your computer and use it in GitHub Desktop.

Select an option

Save undefinedzain/6c7dad87ca10a3a8032f802e15663a4f to your computer and use it in GitHub Desktop.

Revisions

  1. undefinedzain revised this gist May 17, 2017. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions ssh.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    git config --global user.name "SunDi3yansyah"
    git config --global user.email "sundi3yansyah@gmail.com"
    git config --global user.name "Undefined Zain"
    git config --global user.email "masterzera111@gmail.com"
    ls -al ~/.ssh
    ssh-keygen -t rsa -b 4096 -C "sundi3yansyah@gmail.com"
    ssh-keygen -t rsa -b 4096 -C "masterzera111@gmail.com"
    eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/id_rsa
    sudo apt-get install xclip
  2. @SunDi3yansyah SunDi3yansyah created this gist Mar 3, 2016.
    8 changes: 8 additions & 0 deletions ssh.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    git config --global user.name "SunDi3yansyah"
    git config --global user.email "[email protected]"
    ls -al ~/.ssh
    ssh-keygen -t rsa -b 4096 -C "[email protected]"
    eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/id_rsa
    sudo apt-get install xclip
    xclip -sel clip < ~/.ssh/id_rsa.pub