Skip to content

Instantly share code, notes, and snippets.

@SunDi3yansyah
Last active July 24, 2019 09:41

Revisions

  1. SunDi3yansyah revised this gist Nov 20, 2017. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion ssh.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,6 @@ mkdir ~/.ssh
    ssh-keygen -t rsa -b 4096 -C "[email protected]"
    eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/id_rsa
    sudo apt-get install xclip
    cat ~/.ssh/id_rsa.pub
    ```
    > Add `id_rsa.pub` to => https://github.com/settings/keys
  2. SunDi3yansyah revised this gist Nov 20, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ssh.md
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,6 @@ 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
    cat ~/.ssh/id_rsa.pub
    ```
    > Add `id_rsa.pub` to => https://github.com/settings/keys
  3. SunDi3yansyah revised this gist Sep 18, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion ssh.md
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,5 @@ eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/id_rsa
    sudo apt-get install xclip
    xclip -sel clip < ~/.ssh/id_rsa.pub
    ```
    ```
    > Add `id_rsa.pub` to => https://github.com/settings/keys
  4. SunDi3yansyah renamed this gist Sep 18, 2017. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion ssh.sh → ssh.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    ``` sh
    git config --global user.name "SunDi3yansyah"
    git config --global user.email "[email protected]"
    ls -al ~/.ssh
    @@ -7,4 +8,5 @@ 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
    xclip -sel clip < ~/.ssh/id_rsa.pub
    ```
  5. SunDi3yansyah revised this gist Sep 12, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ssh.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    git config --global user.name "SunDi3yansyah"
    git config --global user.email "[email protected]"
    ls -al ~/.ssh
    # if not exist
    mkdir ~/.ssh
    ssh-keygen -t rsa -b 4096 -C "[email protected]"
    eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/id_rsa
  6. 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