Compare commits

..

No commits in common. "master" and "add-license-1" have entirely different histories.

2 changed files with 1 additions and 8 deletions

View file

@ -12,10 +12,3 @@ 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 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
```

2
yubikey_gpg-agent-forward.sh Executable file → Normal file
View file

@ -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 $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 " RemoteForward /home/$ruser/.gnupg/S.gpg-agent.ssh $HOME/.gnupg/S.gpg-agent.ssh" >> ~/.ssh/config
echo " ServerAliveInterval 10" >> ~/.ssh/config echo " ServerAliveInterval 10" >> ~/.ssh/config
echo "Use this shortcut to forward your Yubikey to $hostname:" echo "Use this shortcut to forward your Yubikey to $host:"
echo " ssh $hostshortcut" echo " ssh $hostshortcut"
echo "Inspect or edit the config:" echo "Inspect or edit the config:"
echo " vi ~/.ssh/config" echo " vi ~/.ssh/config"