Compare commits

..

7 commits

Author SHA1 Message Date
Bryan Black 6fb007f4be
switch to URL from SSH for github
compat
2018-07-19 15:34:19 -07:00
Bryan Black 5f91946a60
smaller h4 2018-07-19 15:24:06 -07:00
Bryan Black 7b12dc5bac
and and 2018-07-19 15:23:46 -07:00
Bryan Black 81b1fc2128
add one-liner 2018-07-19 15:22:58 -07:00
Bryan Black 8147ee8fdd
fix hostname variable 2018-07-19 15:20:06 -07:00
Bryan Black 89351d24c7 execute permissions 2018-07-19 15:17:08 -07:00
Bryan Black f4795ef461
Merge pull request #1 from stationgroup/add-license-1
Create LICENSE
2018-07-19 15:09:37 -07:00
2 changed files with 8 additions and 1 deletions

View file

@ -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
```

2
yubikey_gpg-agent-forward.sh Normal file → Executable 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.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"