prezto icon indicating copy to clipboard operation
prezto copied to clipboard

ssh: remove persistent socket; use macOS Keychain

Open slarew opened this issue 7 years ago • 7 comments

Proposed Changes

  • Remove persistent SSH auth socket.
  • Make ps|grep more robust and POSIX compliant.
  • On macOS, use -A switch to "add identities to the agent using any passphrase stored in the user's keychain."

slarew avatar Jul 22 '17 16:07 slarew

Looks like there's a conflict now. Would you mind fixing that?

belak avatar Aug 14 '17 19:08 belak

I think I fixed the conflict.

slarew avatar Aug 14 '17 21:08 slarew

Does this still work on linux and does it connect to the same agent between different shell sessions? I'm not very familiar with this, unfortunately.

belak avatar Aug 29 '17 22:08 belak

I've been running this on several Ubuntu 16.04 machines. Connects to same ssh-agent. Works in tmux.

On Aug 29, 2017, at 18:49, Kaleb Elwert [email protected] wrote:

Does this still work on linux and does it connect to the same agent between different shell sessions? I'm not very familiar with this, unfortunately.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

slarew avatar Aug 29 '17 22:08 slarew

@indrajitr / @johnpneumann if either of you get a chance, can you take a look? I am in the same boat as @belak, that it looks good but I'm not very familiar with this and there's a number of changes in here.

Alternatively, the consequences of this breaking probably aren't the end of the world as it's unlikely to introduce a security risk, just a breakage risk so we'd hear about it immediately and fix it, so personally I'm fine with merging. Will give the other folks a day or two to weigh in though...

jeffwidman avatar Aug 29 '17 23:08 jeffwidman

I'll take a look tonight

johnpneumann avatar Aug 30 '17 14:08 johnpneumann

I tested the modification on Debian v9.1 - zsh 5.3.1 and found no problems (with and without ssh-askpass)

crivotz avatar Aug 31 '17 08:08 crivotz