Compare commits
7 commits
add-licens
...
master
Author | SHA1 | Date | |
---|---|---|---|
6fb007f4be | |||
5f91946a60 | |||
7b12dc5bac | |||
81b1fc2128 | |||
8147ee8fdd | |||
89351d24c7 | |||
f4795ef461 |
|
@ -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 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
2
yubikey_gpg-agent-forward.sh
Normal file → Executable 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 $host:"
|
echo "Use this shortcut to forward your Yubikey to $hostname:"
|
||||||
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"
|
||||||
|
|
Loading…
Reference in a new issue