From 8147ee8fddd5baf56dc0556b203808e20ab2ace6 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 19 Jul 2018 15:20:06 -0700 Subject: [PATCH] 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"