Skip to content

Commit 2a6a80d

Browse files
authored
Update README.md
1 parent f191ed6 commit 2a6a80d

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# touch2sudo
2+
<p align="center">
3+
<img src="https://github.com/prbinu/touch2sudo/raw/master/images/t2s-2.png">
4+
</p>
5+
6+
<p align="center">
7+
<img src="https://github.com/prbinu/touch2sudo/raw/master/images/t2s-1.png">
8+
</p>
29

310
`touch2sudo` is a standalone program if executed authenticates the user either through Touch ID or password. A successful authentication (confirmation) is signaled by a zero exit status from touch2sudo program.
411
To authenticate sudo commands, we configure touch2sudo as `SSH_ASKPASS` confirmation program, invoked by ssh-agent.
512

613
Infact this program can be used for any application that requires user authentication on Mac
714

8-
The setup is described in the following sections
9-
1015
## Mac configuration
1116

1217
*Fingerprint authentication is done locally on Mac, but it acts as a gating mechanism for remote sudo authentication.*
@@ -23,7 +28,12 @@ git clone https://github.com/prbinu/touch2sudo
2328

2429
1. Open `touch2sudo.xcodeproj` file using [Xcode](https://developer.apple.com/xcode/)
2530

26-
2. Build: (*Product -> Build*)
31+
2. Build: (*Product -> Build*) If the build is successful, you may see this dialog:
32+
33+
<p align="center">
34+
<img src="https://github.com/prbinu/touch2sudo/raw/master/images/t2s-3.png">
35+
</p>
36+
2737

2838
3. Archive: (*Product -> Archive -> Distribute Content -> Build Products -> Next -> Save*) Save the archive folder. The touch2sudo executable will be in the `<ArchiveDir>/Product/usr/local/bin` path.
2939

@@ -57,7 +67,7 @@ SHA256:6Vf0p0iUzQaiXqjQlUU+BYeTGiQqzUeC7z7iBNg7alE binu@localhostThe key's rando
5767
+ - - [SHA256] - - -+
5868
```
5969

60-
Start ssh-agent
70+
Start `ssh-agent`
6171

6272
```
6373
$ export SSH_ASKPASS=/usr/local/bin/touch2sudo

0 commit comments

Comments
 (0)