diff options
author | Andrew Cady <d@jerkface.net> | 2022-03-01 20:42:14 -0500 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2022-03-01 20:42:14 -0500 |
commit | c65d4eaa126b6e5b63091cc622ebfbc15e605149 (patch) | |
tree | 9bc29a349669c69fe3ee5223e4b95083ef72565d | |
parent | 630f77b50285ab70659d3256135bf8bf6a7e1965 (diff) |
fix tokssh
-rwxr-xr-x | scripts/tokssh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/tokssh b/scripts/tokssh index 844bad6..1e13eca 100755 --- a/scripts/tokssh +++ b/scripts/tokssh | |||
@@ -51,6 +51,7 @@ then | |||
51 | unset TUNTOX_DESTINATION | 51 | unset TUNTOX_DESTINATION |
52 | fi | 52 | fi |
53 | 53 | ||
54 | ssh_options=() | ||
54 | while [ $# -gt 0 ] | 55 | while [ $# -gt 0 ] |
55 | do | 56 | do |
56 | case "$1" in | 57 | case "$1" in |
@@ -83,8 +84,8 @@ fi | |||
83 | # exchange. | 84 | # exchange. |
84 | 85 | ||
85 | ssh \ | 86 | ssh \ |
86 | -o ProxyCommand="tuntox $persist -i $toxid -W localhost:%p '$TUNTOX_SECRET'" \ | 87 | -o ProxyCommand="tuntox $persist -i %h -W localhost:%p '$TUNTOX_SECRET'" \ |
87 | -o StrictHostKeyChecking=accept \ | 88 | -o StrictHostKeyChecking=accept-new \ |
88 | -o CanonicalizeHostname=no \ | 89 | -o CanonicalizeHostname=no \ |
89 | -o UpdateHostKeys=yes \ | 90 | -o UpdateHostKeys=yes \ |
90 | "${ssh_options[@]}" \ | 91 | "${ssh_options[@]}" \ |