summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-08-29 14:06:21 -0400
committerAndrew Cady <d@jerkface.net>2020-08-29 14:15:04 -0400
commit99a05205c58752126abe648f230988c221687d27 (patch)
tree87f1595387172c159e989dd68fc5bdcbaf025a9c
parente1d746ec1a5c4239359c81ee24c9427bb9bfedd0 (diff)
Fix public key conflict
The public keys of different toxid ssh servers were stored in known_hosts under the name 'localhost'. The key is stored under the toxid instead.
-rwxr-xr-xscripts/tokssh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/tokssh b/scripts/tokssh
index 8169bdd..22a5f0b 100755
--- a/scripts/tokssh
+++ b/scripts/tokssh
@@ -71,12 +71,12 @@ then
71 # last argument is user@toxid 71 # last argument is user@toxid
72 user="${arruserhost[0]}@" 72 user="${arruserhost[0]}@"
73 toxid=${arruserhost[1]} 73 toxid=${arruserhost[1]}
74 hostname=localhost 74 hostname=$toxid
75else 75else
76 # last argument is just toxid 76 # last argument is just toxid
77 user="" 77 user=""
78 toxid=$userhost 78 toxid=$userhost
79 hostname=localhost 79 hostname=$toxid
80fi 80fi
81 81
82#search toxid in ~/.tuntox/hosts and map it to toxid 82#search toxid in ~/.tuntox/hosts and map it to toxid