Subject | Hash | Author | Date (UTC) |
---|---|---|---|
tokssh: shared secret support,fix no user cmd line | d59b35d00bf2da3eb185043bba08acb3acc7c977 | fabrixxm | 2017-04-07 19:07:03 |
Try installing jinja2 with pip not apt | 0ba5a19f9942b8086474d91561b9b14a87aa042e | GDR! | 2017-02-01 10:52:10 |
Remove devnull redirect in travis.yml | 162b886c7e7a8f59aee7f7e58ec7dee338d327d0 | GDR! | 2017-01-31 21:16:12 |
Install jinja2 in Travis | 1d49afc7c880d940ba2d75ff7807b64d27de15ca | GDR! | 2017-01-31 20:12:24 |
Nicer help message | d77375c08113707235fe3949a7020bb87a7fdc41 | Francesco Gazzetta | 2017-01-24 18:16:03 |
Increased security | e32c14ff83b4e44067b1f0a2fa977a31e3962797 | Francesco Gazzetta | 2017-01-24 17:24:36 |
rebuild bootstrap nodes on make clean | 820360140e012ae26c5d048cca2775a96f52812b | GDR! | 2017-01-24 16:39:18 |
CID 122502 (#1 of 1): 'Constant' variable guards dead code | 5d23e782ff74a287202dec0b61132258d42c3221 | GDR! | 2017-01-24 16:23:16 |
CID 122516 (#1 of 1): Resource leak (RESOURCE_LEAK)10. leaked_storage: | cd1aa90632cf8853cbeb3610d254afc3d7d95b6b | GDR! | 2017-01-24 16:18:17 |
Update .travis.yml | e5483bc4662dc95665aeef5bc84adf95a81f7f3c | GDR! | 2017-01-24 15:23:06 |
Update .travis.yml | 5c2e4263fae3b78be4c4424fa846cd06915a0b8c | GDR! | 2017-01-24 15:15:34 |
Update .travis.yml | 370e83c0fabcad3899944398cf0b06c3f91e4d3c | GDR! | 2017-01-24 15:01:45 |
Updated BUILD.md to use c-toxcore | fad23001af27f1cd380f7d05270ddcc04244f507 | GDR! | 2017-01-07 18:45:28 |
Cleaned up .PHONY in Makefile | 44cfc1bd5e81a8ba5c7206453bcc6fed02486caf | GDR! | 2016-12-12 12:32:33 |
gitversion.h dep missing | 361edc084a1d53bce46563c9a3135034acb917bf | GDR! | 2016-12-12 12:21:27 |
Travis | 6d74a7a2da9690ca56b3543a240d53b6b3915bf3 | GDR! | 2016-12-07 14:50:01 |
Fixed some warnings | b3b0e345a94830a186168a4ecd53e0259a00b0c0 | GDR! | 2016-12-07 14:26:38 |
Travis | 5667e567a59041b673861804fc6eba3cf99fcb05 | GDR! | 2016-12-07 14:11:16 |
Travis | 16bea5fe486f6d1bf47de820642e4568c1b1dc20 | GDR! | 2016-12-07 14:05:50 |
Made tuntox build with TokTok/c-toxcore | e093c65637385fe3b3db6ce5a830e5c9c2a00dd4 | GDR! | 2016-12-07 13:56:26 |
File | Lines added | Lines deleted |
---|---|---|
scripts/tokssh | 9 | 1 |
File scripts/tokssh changed (mode: 100755) (index 9d219bb..11cf858) | |||
6 | 6 | # tokssh user@5A40C3443ABD6E1DDEE682E83F84A4D556C24C22D2230DCC141A4723C123473C171A4D9C4054 | # tokssh user@5A40C3443ABD6E1DDEE682E83F84A4D556C24C22D2230DCC141A4723C123473C171A4D9C4054 |
7 | 7 | # tokssh 5A40C3443ABD6E1DDEE682E83F84A4D556C24C22D2230DCC141A4723C123473C171A4D9C4054 | # tokssh 5A40C3443ABD6E1DDEE682E83F84A4D556C24C22D2230DCC141A4723C123473C171A4D9C4054 |
8 | 8 | # tokssh -p 2222 -o ForwardAgent=yes user@5A40C3443ABD6E1DDEE682E83F84A4D556C24C22D2230DCC141A4723C123473C171A4D9C4054 | # tokssh -p 2222 -o ForwardAgent=yes user@5A40C3443ABD6E1DDEE682E83F84A4D556C24C22D2230DCC141A4723C123473C171A4D9C4054 |
9 | # tokssh user@5A40C3443ABD6E1DDEE682E83F84A4D556C24C22D2230DCC141A4723C123473C171A4D9C4054 -s TuNToXSeCreT | ||
9 | 10 | # | # |
10 | 11 | ||
11 | 12 | array=( $@ ) | array=( $@ ) |
... | ... | len=${#array[@]} | |
13 | 14 | userhost=${array[$len-1]} | userhost=${array[$len-1]} |
14 | 15 | args=${array[@]:0:$len-1} | args=${array[@]:0:$len-1} |
15 | 16 | ||
17 | if [ "${array[$len-2]}" == "-s" ] | ||
18 | then | ||
19 | secret="${array[@]:$len-2:$len-1}" | ||
20 | len=$[len-2] | ||
21 | fi | ||
22 | |||
23 | |||
16 | 24 | arruserhost=(${userhost//@/ }) | arruserhost=(${userhost//@/ }) |
17 | 25 | arruserhostlen=${#arruserhost[@]} | arruserhostlen=${#arruserhost[@]} |
18 | 26 | ||
... | ... | then | |
24 | 32 | ssh -o ProxyCommand="tuntox -i $toxid -P 127.0.0.1:%p" $args $user@localhost | ssh -o ProxyCommand="tuntox -i $toxid -P 127.0.0.1:%p" $args $user@localhost |
25 | 33 | else | else |
26 | 34 | # last argument is just toxid | # last argument is just toxid |
27 | ssh -o ProxyCommand="tuntox -i $toxid -P 127.0.0.1:%p" $args localhost | ||
35 | ssh -o ProxyCommand="tuntox -i $userhost -P 127.0.0.1:%p" $args localhost | ||
28 | 36 | fi | fi |
29 | 37 |