Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Formula/libsk-libfido2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class LibskLibfido2 < Formula
version "10.5p1"
sha256 "d44d28a839ea9daf969cc69150fde59910b2b39361dad81a3bd6cbd19218db11"
license "SSH-OpenSSH"
revision 2
revision 3
compatibility_version 1

livecheck do
Expand Down
5 changes: 5 additions & 0 deletions Formula/ssh-askpass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ class SshAskpass < Formula
sha256 "7497125e452e1cfe671ac05dbb4640f5d82ba6961950c0e519a00afdd8be0880"
license "ISC"

livecheck do
url :stable
strategy :github_latest
end

# Fork of theseal/ssh-askpass. Packaged here so the other formulae in this tap
# can ship bottles: Homebrew refuses to bottle a formula whose dependencies
# are unbottled, and the original tap publishes none.
Expand Down
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,34 @@ mean two agents writing the same session variable. As a result
`brew services start ssh-askpass` is **not** supported here; if you relied on it,
keep using `theseal/ssh-askpass` instead.

**Getting `SSH_ASKPASS` set for your session.** Because this formula no longer
ships a launch agent, nothing points `SSH_ASKPASS` at the binary on its own.
This tap's `com.mroosz.ssh_env_vars` agent does that — it runs
`launchctl setenv` at login for `SSH_ASKPASS`, `SSH_ASKPASS_REQUIRE` and
`SSH_SK_PROVIDER`, so terminals and GUI apps started afterwards inherit them.

Install it with the cask:
```bash
brew install michaelroosz/ssh/libsk-libfido2-install
```
or, if you prefer the formula:
```bash
brew install michaelroosz/ssh/libsk-libfido2
sudo install-libsk-libfido2
```

Check that it took effect (log out and back in first, if you just installed it):
```bash
launchctl getenv SSH_ASKPASS
```

If you would rather not run the agent at all, set the variables yourself in your
shell profile instead. Note this only covers shells, not GUI applications:
```bash
export SSH_ASKPASS="$(brew --prefix)/bin/ssh-askpass"
export SSH_ASKPASS_REQUIRE=force
```

**Already using `theseal/ssh-askpass`?** The binary is identical (same upstream
tag, same tarball checksum) and the formula name matches, so both share one
Cellar entry: an existing install already satisfies the formulae here and is not
Expand Down