From 975ba3323b696736e2683dee6839c8581c3e1db3 Mon Sep 17 00:00:00 2001 From: Nicolas Viennot Date: Thu, 31 Oct 2019 20:44:39 -0400 Subject: [PATCH] Fix bug of SIG unset if the keys already exists Fixes #66 --- create_keys.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_keys.sh b/create_keys.sh index 9860083d..da96c4c5 100755 --- a/create_keys.sh +++ b/create_keys.sh @@ -7,8 +7,9 @@ gen_key() { key="keys/ssh_host_${ks}key" if [ ! -e "${key}" ] ; then ssh-keygen -t ${keytype} -f "${key}" -N '' - SIG=$(ssh-keygen -l -E SHA256 -f $key.pub | cut -d ' ' -f 2) + echo "" fi + SIG=$(ssh-keygen -l -E SHA256 -f $key.pub | cut -d ' ' -f 2) } mkdir -p keys @@ -18,7 +19,6 @@ gen_key ed25519 ED25519_SIG=$SIG -echo "" echo "You may use the following settings this in your .tmate.conf:" echo "" echo "set -g tmate-server-host localhost"