diff --git a/README.md b/README.md index 98e9dd4..a4c1864 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 https://github.com/stationgroup/gpg-agent-forward.git && cd gpg-agent-forward && ./yubikey_gpg-agent-forward.sh USER HOST.COM +``` diff --git a/yubikey_gpg-agent-forward.sh b/yubikey_gpg-agent-forward.sh old mode 100644 new mode 100755 index 6848336..63277b3 --- 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"