diff options
author | Andrew Cady <d@jerkface.net> | 2020-08-29 14:06:21 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-08-29 14:15:04 -0400 |
commit | 99a05205c58752126abe648f230988c221687d27 (patch) | |
tree | 87f1595387172c159e989dd68fc5bdcbaf025a9c | |
parent | e1d746ec1a5c4239359c81ee24c9427bb9bfedd0 (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-x | scripts/tokssh | 4 |
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 |
75 | else | 75 | else |
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 |
80 | fi | 80 | fi |
81 | 81 | ||
82 | #search toxid in ~/.tuntox/hosts and map it to toxid | 82 | #search toxid in ~/.tuntox/hosts and map it to toxid |