Skip to content

Instantly share code, notes, and snippets.

@rmasoni
Last active June 1, 2018 06:16
Show Gist options
  • Select an option

  • Save rmasoni/a71ec3049f1061cfe6d4275e537ff801 to your computer and use it in GitHub Desktop.

Select an option

Save rmasoni/a71ec3049f1061cfe6d4275e537ff801 to your computer and use it in GitHub Desktop.

Revisions

  1. Rafael Masoni revised this gist Jun 1, 2018. 1 changed file with 1 addition and 5 deletions.
    6 changes: 1 addition & 5 deletions ssh-password-prompt-fix.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,5 @@
    ```shell
    ssh-add -K ~/.ssh/id_rsa
    ```

    ```shell
    ssh-add -A
    $ ssh-add -K ~/.ssh/id_rsa; ssh-add -A
    ```

    Set `~/.ssh/config` to:
  2. Rafael Masoni renamed this gist Jun 1, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. Rafael Masoni created this gist Jun 1, 2018.
    16 changes: 16 additions & 0 deletions ssh-password-prompt-fix
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    ```shell
    ssh-add -K ~/.ssh/id_rsa
    ```

    ```shell
    ssh-add -A
    ```

    Set `~/.ssh/config` to:

    ```
    Host *
    UseKeychain yes
    AddKeysToAgent yes
    IdentityFile ~/.ssh/id_rsa
    ```