From 89351d24c734adc63a88e5d6408bb4e14775ec86 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 19 Jul 2018 15:17:08 -0700 Subject: [PATCH 1/6] execute permissions --- yubikey_gpg-agent-forward.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 yubikey_gpg-agent-forward.sh diff --git a/yubikey_gpg-agent-forward.sh b/yubikey_gpg-agent-forward.sh old mode 100644 new mode 100755 From 8147ee8fddd5baf56dc0556b203808e20ab2ace6 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 19 Jul 2018 15:20:06 -0700 Subject: [PATCH 2/6] fix hostname variable --- yubikey_gpg-agent-forward.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yubikey_gpg-agent-forward.sh b/yubikey_gpg-agent-forward.sh index 6848336..63277b3 100755 --- a/yubikey_gpg-agent-forward.sh +++ b/yubikey_gpg-agent-forward.sh @@ -20,7 +20,7 @@ echo " User $ruser" >> ~/.ssh/config echo " RemoteForward /home/$ruser/.gnupg/S.gpg-agent $HOME/.gnupg/S.gpg-agent" >> ~/.ssh/config echo " RemoteForward /home/$ruser/.gnupg/S.gpg-agent.ssh $HOME/.gnupg/S.gpg-agent.ssh" >> ~/.ssh/config echo " ServerAliveInterval 10" >> ~/.ssh/config -echo "Use this shortcut to forward your Yubikey to $host:" +echo "Use this shortcut to forward your Yubikey to $hostname:" echo " ssh $hostshortcut" echo "Inspect or edit the config:" echo " vi ~/.ssh/config" From 81b1fc2128f13d4588a9cfbb4b4f43c8fc764e5b Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 19 Jul 2018 15:22:58 -0700 Subject: [PATCH 3/6] add one-liner --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 98e9dd4..d20e328 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,10 @@ This assumes you [already added a GPG key to your Yubikey](https://github.com/dr ``` The important part here is typing the **`username`** and **`hostname/IP`**. These variables are needed to write a correct config. + + +### The one-liner version + +``` +git clone git@github.com:stationgroup/gpg-agent-forward.git ; cd gpg-agent-forward ; ./yubikey_gpg-agent-forward.sh USER HOST.COM +``` From 7b12dc5bacab18788cb82368d94dea2c51eb4faf Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 19 Jul 2018 15:23:46 -0700 Subject: [PATCH 4/6] and and --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d20e328..f5b985f 100644 --- a/README.md +++ b/README.md @@ -17,5 +17,5 @@ The important part here is typing the **`username`** and **`hostname/IP`**. Thes ### The one-liner version ``` -git clone git@github.com:stationgroup/gpg-agent-forward.git ; cd gpg-agent-forward ; ./yubikey_gpg-agent-forward.sh USER HOST.COM +git clone git@github.com:stationgroup/gpg-agent-forward.git && cd gpg-agent-forward && ./yubikey_gpg-agent-forward.sh USER HOST.COM ``` From 5f91946a601dcb323551cefc6e8552da9de5aa59 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 19 Jul 2018 15:24:06 -0700 Subject: [PATCH 5/6] smaller h4 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f5b985f..e042cb7 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This assumes you [already added a GPG key to your Yubikey](https://github.com/dr The important part here is typing the **`username`** and **`hostname/IP`**. These variables are needed to write a correct config. -### The one-liner version +#### The one-liner version ``` git clone git@github.com:stationgroup/gpg-agent-forward.git && cd gpg-agent-forward && ./yubikey_gpg-agent-forward.sh USER HOST.COM From 6fb007f4becb89a6e2075a990c34d8687eb667ae Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 19 Jul 2018 15:34:19 -0700 Subject: [PATCH 6/6] switch to URL from SSH for github compat --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e042cb7..a4c1864 100644 --- a/README.md +++ b/README.md @@ -17,5 +17,5 @@ The important part here is typing the **`username`** and **`hostname/IP`**. Thes #### The one-liner version ``` -git clone git@github.com:stationgroup/gpg-agent-forward.git && cd gpg-agent-forward && ./yubikey_gpg-agent-forward.sh USER HOST.COM +git clone https://github.com/stationgroup/gpg-agent-forward.git && cd gpg-agent-forward && ./yubikey_gpg-agent-forward.sh USER HOST.COM ```