Community discussions

MUM Europe 2020
 
bgpro
just joined
Topic Author
Posts: 9
Joined: Mon Jul 15, 2019 12:57 am

Hotspot script to send data via ssh doesn't work

Sat Jan 11, 2020 7:30 am

Hello everyone.
I am trying to develop a hotspot script that grabs the user, look for that user's mac and ip address and via ssh (keys already imported and mikoritk_1 connects without password in mikrotik_2) enter this information in IP> Firewall> Filter Above the last Rule.
I am not succeeding. If you declare the variables as global, eg:
[test@MikroTik] > :global IpAddr 12.12.12.12
[test@MikroTik] > :global MacAddr BB:20:64:22:23:88      
And run in Terminal :
[test@MikroTik] > /system ssh address=10.114.2.2 user=user "/ip firewal filter add action=acc
ept chain=forward src-address=$IpAddr src-mac-address=$MacAddr"              

Welcome back!
[test@MikroTik] > 
And Check in other mk router :
/ip firewall filter export
add action=accept chain=forward src-address=12.12.12.12 src-mac-address=\
    BB:20:64:22:23:88

But by including this in mikrotik scripts in Ip> hotspot> Users profiles in Scripts tab, in On Login:

:global a $user
:local MacAddr [/ip hotspot active get [find user=$a]mac-address];
:local IpAddr [/ip hotspot active get [find user=$a address];
/system ssh address=10.114.2.2 user=user "/ip firewal filter add action=accept chain=forward src-address=$IpAddr src-mac-address=$MacAddr"
It does not work.
Where can I be wrong?
Sorry for my english :D
 
User avatar
eworm
Member
Member
Posts: 446
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: Hotspot script to send data via ssh doesn't work

Sat Jan 11, 2020 11:49 pm

You do not have to get ip and mac address, these are available already.
/system ssh address=10.114.2.2 user=user ("/ip firewall filter add action=accept chain=forward src-address=" . $address . " src-mac-address=" . $"mac-address")
Untested, but should work...
Manage RouterOS scripts and extend your devices' functionality: RouterOS Scripts
 
bgpro
just joined
Topic Author
Posts: 9
Joined: Mon Jul 15, 2019 12:57 am

Re: Hotspot script to send data via ssh doesn't work

Sun Jan 12, 2020 5:06 am

You do not have to get ip and mac address, these are available already.
/system ssh address=10.114.2.2 user=user ("/ip firewall filter add action=accept chain=forward src-address=" . $address . " src-mac-address=" . $"mac-address")
Untested, but should work...
I have them at the terminal.
But if you try to run ssh-exec on the password error hotspot scripts, even using the id_dsa and id_dsa.pub key pairs.
And via script in System-> Scripts the variables are not with the values.
 
bgpro
just joined
Topic Author
Posts: 9
Joined: Mon Jul 15, 2019 12:57 am

Re: Hotspot script to send data via ssh doesn't work

Sun Jan 12, 2020 5:39 am

Via Scripts in hotspot i have this error:

01:31:36 ssh,debug,packet 
01:31:36 ssh,debug client version: SSH-2.0-ROSSSH 
01:31:36 ssh,debug transport state: 2 --> 3 
01:31:36 ssh,debug,packet packet create: 20 
01:31:36 ssh,debug,packet ----- sending -----  
01:31:36 ssh,debug,packet => offset:432 [0x1b0] 
01:31:36 ssh,debug,packet => size:100 [0x100] 
01:31:36 ssh,debug,packet 0000 01ac 0614 08e1 1255 d515 bda7 b4c8 
01:31:36 ssh,debug,packet c974 af3e 6c81 0000 007e 6469 6666 6965 
01:31:36 ssh,debug,packet 2d68 656c 6c6d 616e 2d67 726f 7570 2d65 
01:31:36 ssh,debug,packet 7863 6861 6e67 652d 7368 6132 3536 2c64 
01:31:36 ssh,debug,packet 6966 6669 652d 6865 6c6c 6d61 6e2d 6772 
01:31:36 ssh,debug,packet 6f75 702d 6578 6368 616e 6765 2d73 6861 
01:31:36 ssh,debug,packet 312c 6469 6666 6965 2d68 656c 6c6d 616e 
01:31:36 ssh,debug,packet 2d67 726f 7570 3134 2d73 6861 312c 6469 
01:31:36 ssh,debug,packet 6666 6965 2d68 656c 6c6d 616e 2d67 726f 
01:31:36 ssh,debug,packet 7570 312d 7368 6131 0000 000f 7373 682d 
01:31:36 ssh,debug,packet 6473 732c 7373 682d 7273 6100 0000 5761 
01:31:36 ssh,debug,packet 6573 3132 382d 6374 722c 6165 7331 3932 
01:31:36 ssh,debug,packet 2d63 7472 2c61 6573 3235 362d 6374 722c 
01:31:36 ssh,debug,packet 6165 7331 3238 2d63 6263 2c61 6573 3139 
01:31:36 ssh,debug,packet 322d 6362 632c 6165 7332 3536 2d63 6263 
01:31:36 ssh,debug,packet 2c62 6c6f 7766 6973 682d 6362 632c 3364 
01:31:36 ssh,debug,packet -------------------- 
01:31:36 ssh,debug,packet ----- recieved ----- 
01:31:36 ssh,debug,packet => offset:1b0 [0x1b0] 
01:31:36 ssh,debug,packet => size:100 [0x100] 
01:31:36 ssh,debug,packet 0000 01ac 0614 09ed c742 a192 ff7f d0e4 
01:31:36 ssh,debug,packet 1200 f8fe 895f 0000 007e 6469 6666 6965 
01:31:36 ssh,debug,packet 2d68 656c 6c6d 616e 2d67 726f 7570 2d65 
01:31:36 ssh,debug,packet 7863 6861 6e67 652d 7368 6132 3536 2c64 
01:31:36 ssh,debug,packet 6966 6669 652d 6865 6c6c 6d61 6e2d 6772 
01:31:36 ssh,debug,packet 6f75 702d 6578 6368 616e 6765 2d73 6861 
01:31:36 ssh,debug,packet 312c 6469 6666 6965 2d68 656c 6c6d 616e 
01:31:36 ssh,debug,packet 2d67 726f 7570 3134 2d73 6861 312c 6469 
01:31:36 ssh,debug,packet 6666 6965 2d68 656c 6c6d 616e 2d67 726f 
01:31:36 ssh,debug,packet 7570 312d 7368 6131 0000 000f 7373 682d 
01:31:36 ssh,debug,packet 7273 612c 7373 682d 6473 7300 0000 5761 
01:31:36 ssh,debug,packet 6573 3132 382d 6374 722c 6165 7331 3932 
01:31:36 ssh,debug,packet 2d63 7472 2c61 6573 3235 362d 6374 722c 
01:31:36 ssh,debug,packet 6165 7331 3238 2d63 6263 2c61 6573 3139 
01:31:36 ssh,debug,packet 322d 6362 632c 6165 7332 3536 2d63 6263 
01:31:36 ssh,debug,packet 2c62 6c6f 7766 6973 682d 6362 632c 3364 
01:31:36 ssh,debug,packet -------------------- 
01:31:36 ssh,debug host key algo: ssh-rsa,ssh-dss 
01:31:36 ssh,debug kex algo: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 
01:31:36 ssh,debug enc algo CS: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,3des-cbc 
01:31:36 ssh,debug mac algo CS: hmac-sha1,hmac-md5 
01:31:36 ssh,debug comp algo CS: none 
01:31:36 ssh,debug packet follows: 0 
01:31:36 ssh,debug agreed on: diffie-hellman-group-exchange-sha256 ssh-rsa aes128-ctr aes128-ctr hmac-sha1 hmac-sha1 none none  
01:31:36 ssh,debug,packet ----- recieved ----- 
01:31:36 ssh,debug,packet => offset:18 [0x18] 
01:31:36 ssh,debug,packet => size:18 [0x18] 
01:31:36 ssh,debug,packet 0000 0014 0622 0000 0400 0000 0800 0000 
01:31:36 ssh,debug,packet 2000 1cd6 4384 4ba4 
01:31:36 ssh,debug,packet -------------------- 
01:31:36 ssh,debug getPrime bits: 2048[1024-8192] returned: 1024 
01:31:36 ssh,debug,packet packet create: 31 
01:31:36 ssh,debug,packet ----- sending -----  
01:31:36 ssh,debug,packet => offset:152 [0x98] 
01:31:36 ssh,debug,packet => size:98 [0x98] 
01:31:36 ssh,debug,packet 0000 0094 081f 0000 0081 00ac 3312 b843 
01:31:36 ssh,debug,packet 8ba5 ccc6 bf87 5f63 6202 402c 4421 9dee 
01:31:36 ssh,debug,packet 828b c56a a0d2 b700 0d00 8e70 8dce eb0a 
01:31:36 ssh,debug,packet b5e7 fb0b b858 1f5a 4fbb dc31 e124 689c 
01:31:36 ssh,debug,packet e22f bb2c 5974 61a9 0a31 9fe6 edc7 43c8 
01:31:36 ssh,debug,packet 96d4 846a 2417 31b1 f76d 0334 7002 afe3 
01:31:36 ssh,debug,packet 235a 5ceb a18f 7b4d c741 ac14 3b6a efab 
01:31:36 ssh,debug,packet 7820 aaa9 efe1 5179 d9d4 81dc 531b 772d 
01:31:36 ssh,debug,packet 2e5b 1d14 f1c3 951d 66c7 6300 0000 0102 
01:31:36 ssh,debug,packet af3d a378 9414 a8d1 
01:31:36 ssh,debug,packet -------------------- 
01:31:36 ssh,debug,packet ----- recieved ----- 
01:31:36 ssh,debug,packet => offset:90 [0x90] 
01:31:36 ssh,debug,packet => size:90 [0x90] 
01:31:36 ssh,debug,packet 0000 008c 0620 0000 0080 5152 4708 a06b 
01:31:36 ssh,debug,packet 61ae ea61 97b2 aeec 3a90 c38d 6135 ea3c 
01:31:36 ssh,debug,packet 1ba6 3572 deec 1844 e136 1385 3f2b 2778 
01:31:36 ssh,debug,packet 2684 8866 8d96 49bb aa09 d7f7 4b59 b3b3 
01:31:36 ssh,debug,packet 4d1a 3b9b 7408 32af 8814 1303 618c 27a3 
01:31:36 ssh,debug,packet 79b8 45bb 87fc 3d91 b14d 927f aa37 3db2 
01:31:36 ssh,debug,packet 1c8f 577e 05c5 6056 fc67 9fe1 9ece 8269 
01:31:36 ssh,debug,packet 6504 be83 37bb 6c8e 2ae1 def5 5622 76d2 
01:31:36 ssh,debug,packet 7d73 833d 62c8 40d5 2f91 7e66 6e3b 854e 
01:31:36 ssh,debug,packet -------------------- 
01:31:37 ssh,debug,packet packet create: 33 
01:31:37 ssh,debug,packet ----- sending -----  
01:31:37 ssh,debug,packet => offset:704 [0x2c0] 
01:31:37 ssh,debug,packet => size:100 [0x100] 
01:31:37 ssh,debug,packet 0000 02bc 0a21 0000 0115 0000 0007 7373 
01:31:37 ssh,debug,packet 682d 7273 6100 0000 0103 0000 0101 00ab 
01:31:37 ssh,debug,packet 5e46 2d63 c609 5ed2 3cea ddaa 0510 93ee 
01:31:37 ssh,debug,packet 66ff b84f ef5e 1054 fe6d 1b01 e45c 2171 
01:31:37 ssh,debug,packet 918e 2bb1 a96e bf57 991a b4b6 ab86 2bd2 
01:31:37 ssh,debug,packet cdc3 1bcf a2ec f356 17a4 e877 5663 18dd 
01:31:37 ssh,debug,packet d760 3da1 52d2 c3ec f42d 1ed3 7200 0efb 
01:31:37 ssh,debug,packet 7fd8 8e0a 8132 8fe5 a76a ec6b 2c63 fccd 
01:31:37 ssh,debug,packet 0cd6 d9ce 86fe 1034 9b4d 8bde 307d 9dac 
01:31:37 ssh,debug,packet bff8 0f9b aa8e ad3f 4b72 8297 3c2c b1ee 
01:31:37 ssh,debug,packet 06ed b2be 0bc8 8481 d209 12bc 9b41 cf86 
01:31:37 ssh,debug,packet baa4 c38e e9db c34a 8f8b 04bf 3d56 ce7b 
01:31:37 ssh,debug,packet 2e0f 30d5 bd89 e633 a48a 9b8f dd95 3b94 
01:31:37 ssh,debug,packet e391 ffae 9993 a49b 25cf 0882 47d4 99e1 
01:31:37 ssh,debug,packet 0c49 347c be56 f7c1 43e8 221f 6184 e8ae 
01:31:37 ssh,debug,packet 793d 6030 6607 641b 6f6e a648 0c89 3da3 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug,packet packet create: 21 
01:31:37 ssh,debug,packet ----- sending -----  
01:31:37 ssh,debug,packet => offset:16 [0x10] 
01:31:37 ssh,debug,packet => size:10 [0x10] 
01:31:37 ssh,debug,packet 0000 000c 0a15 7789 22b4 b585 54f8 d7f2 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug,packet ----- recieved ----- 
01:31:37 ssh,debug,packet => offset:10 [0x10] 
01:31:37 ssh,debug,packet => size:10 [0x10] 
01:31:37 ssh,debug,packet 0000 000c 0a15 ae8e 3a4f c3a6 5803 8586 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug transport state: 3 --> 4 
01:31:37 ssh,debug,packet ----- recieved ----- 
01:31:37 ssh,debug,packet => offset:34 [0x34] 
01:31:37 ssh,debug,packet => size:34 [0x34] 
01:31:37 ssh,debug,packet 0000 001c 0a05 0000 000c 7373 682d 7573 
01:31:37 ssh,debug,packet 6572 6175 7468 05b0 573e 7cbb 1928 56d8 
01:31:37 ssh,debug,packet e271 5b98 33c7 94fb 4a67 64c9 ca31 705e 
01:31:37 ssh,debug,packet 8121 f37f 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug authorization service requested 
01:31:37 ssh,debug,packet packet create: 6 
01:31:37 ssh,debug,packet ----- sending -----  
01:31:37 ssh,debug,packet => offset:52 [0x34] 
01:31:37 ssh,debug,packet => size:34 [0x34] 
01:31:37 ssh,debug,packet 0000 001c 0a06 0000 000c 7373 682d 7573 
01:31:37 ssh,debug,packet 6572 6175 7468 7456 496a edc2 d5b6 4b93 
01:31:37 ssh,debug,packet 7ed6 20a2 9a21 e6b5 9ded 2fa4 ca33 f7f1 
01:31:37 ssh,debug,packet 22ea 970e 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug,packet ----- recieved ----- 
01:31:37 ssh,debug,packet => offset:44 [0x44] 
01:31:37 ssh,debug,packet => size:44 [0x44] 
01:31:37 ssh,debug,packet 0000 002c 0632 0000 0006 7468 6961 676f 
01:31:37 ssh,debug,packet 0000 000e 7373 682d 636f 6e6e 6563 7469 
01:31:37 ssh,debug,packet 6f6e 0000 0004 6e6f 6e65 6621 1ac1 5152 
01:31:37 ssh,debug,packet 0842 95e6 b04f 5b0e 02d2 1de6 b522 07a9 
01:31:37 ssh,debug,packet 88c2 3d99 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug auth req: myuserteste ssh-connection none 
01:31:37 ssh,debug next auth methods: publickey,password 
01:31:37 ssh,debug,packet packet create: 51 
01:31:37 ssh,debug,packet ----- sending -----  
01:31:37 ssh,debug,packet => offset:68 [0x44] 
01:31:37 ssh,debug,packet => size:44 [0x44] 
01:31:37 ssh,debug,packet 0000 002c 1333 0000 0012 7075 626c 6963 
01:31:37 ssh,debug,packet 6b65 792c 7061 7373 776f 7264 007f c58d 
01:31:37 ssh,debug,packet 556a 8051 8765 9a0b 2003 a35b 17d5 02b5 
01:31:37 ssh,debug,packet 53d1 86d4 bd68 4892 4301 4cea 7ee7 d5d7 
01:31:37 ssh,debug,packet b11d ac2f 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug,packet ----- recieved ----- 
01:31:37 ssh,debug,packet => offset:54 [0x54] 
01:31:37 ssh,debug,packet => size:54 [0x54] 
01:31:37 ssh,debug,packet 0000 003c 0d32 0000 0006 7468 6961 676f 
01:31:37 ssh,debug,packet 0000 000e 7373 682d 636f 6e6e 6563 7469 
01:31:37 ssh,debug,packet 6f6e 0000 0008 7061 7373 776f 7264 0000 
01:31:37 ssh,debug,packet 0000 0080 16a9 7b04 2150 09a6 348d e766 
01:31:37 ssh,debug,packet 3cea 5631 2778 ac57 3ae0 7c29 6872 2d8e 
01:31:37 ssh,debug,packet 52e1 b2f6 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug auth req: myuserteste ssh-connection password 
01:31:37 ssh,debug next auth methods: password 
01:31:37 ssh,debug,packet packet create: 51 
01:31:37 ssh,debug,packet ----- sending -----  
01:31:37 ssh,debug,packet => offset:52 [0x34] 
01:31:37 ssh,debug,packet => size:34 [0x34] 
01:31:37 ssh,debug,packet 0000 001c 0d33 0000 0008 7061 7373 776f 
01:31:37 ssh,debug,packet 7264 00b8 7002 1116 7276 ef92 f461 8d05 
01:31:37 ssh,debug,packet 73c4 a62a 0c49 5e6c 4ed3 1c9d 33e3 a84b 
01:31:37 ssh,debug,packet a748 7761 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug,packet ----- recieved ----- 
01:31:37 ssh,debug,packet => offset:54 [0x54] 
01:31:37 ssh,debug,packet => size:54 [0x54] 
01:31:37 ssh,debug,packet 0000 003c 0d32 0000 0006 7468 6961 676f 
01:31:37 ssh,debug,packet 0000 000e 7373 682d 636f 6e6e 6563 7469 
01:31:37 ssh,debug,packet 6f6e 0000 0008 7061 7373 776f 7264 0000 
01:31:37 ssh,debug,packet 0000 0095 9e23 02e8 580c 1ad1 9dd1 21f8 
01:31:37 ssh,debug,packet db48 802c 2159 13da 8c40 c1af b840 2e4c 
01:31:37 ssh,debug,packet 1f12 bcb1 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug auth req: myuserteste ssh-connection password 
01:31:37 ssh,debug auth retry: 1 
01:31:37 ssh,debug next auth methods: password 
01:31:37 ssh,debug,packet packet create: 51 
01:31:37 ssh,debug,packet ----- sending -----  
01:31:37 ssh,debug,packet => offset:52 [0x34] 
01:31:37 ssh,debug,packet => size:34 [0x34] 
01:31:37 ssh,debug,packet 0000 001c 0d33 0000 0008 7061 7373 776f 
01:31:37 ssh,debug,packet 7264 0070 000d 6e5a b3f4 a9d7 79eb 8249 
01:31:37 ssh,debug,packet 0451 34f0 a32c 564a e48a 87df 2565 00ee 
01:31:37 ssh,debug,packet ee41 197b 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug,packet ----- recieved ----- 
01:31:37 ssh,debug,packet => offset:54 [0x54] 
01:31:37 ssh,debug,packet => size:54 [0x54] 
01:31:37 ssh,debug,packet 0000 003c 0d32 0000 0006 7468 6961 676f 
01:31:37 ssh,debug,packet 0000 000e 7373 682d 636f 6e6e 6563 7469 
01:31:37 ssh,debug,packet 6f6e 0000 0008 7061 7373 776f 7264 0000 
01:31:37 ssh,debug,packet 0000 008c 3081 f509 f5cb 4598 e10a 4670 
01:31:37 ssh,debug,packet a842 8762 5060 5785 0137 12db 6746 6724 
01:31:37 ssh,debug,packet e3c5 a040 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug auth req: myuserteste ssh-connection password 
01:31:37 ssh,debug auth retry: 2 
01:31:37 ssh,debug next auth methods: password 
01:31:37 ssh,debug,packet packet create: 51 
01:31:37 ssh,debug,packet ----- sending -----  
01:31:37 ssh,debug,packet => offset:52 [0x34] 
01:31:37 ssh,debug,packet => size:34 [0x34] 
01:31:37 ssh,debug,packet 0000 001c 0d33 0000 0008 7061 7373 776f 
01:31:37 ssh,debug,packet 7264 0013 ab1f d63f aa82 ce51 6222 eef0 
01:31:37 ssh,debug,packet ac23 b50d 7356 900f c2b8 8ae0 7c8c 11a8 
01:31:37 ssh,debug,packet 88bf 38df 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug,packet ----- recieved ----- 
01:31:37 ssh,debug,packet => offset:54 [0x54] 
01:31:37 ssh,debug,packet => size:54 [0x54] 
01:31:37 ssh,debug,packet 0000 003c 0d32 0000 0006 7468 6961 676f 
01:31:37 ssh,debug,packet 0000 000e 7373 682d 636f 6e6e 6563 7469 
01:31:37 ssh,debug,packet 6f6e 0000 0008 7061 7373 776f 7264 0000 
01:31:37 ssh,debug,packet 0000 00c0 d340 c99b 1ae9 9cc4 c412 ba53 
01:31:37 ssh,debug,packet 3e08 3006 1bb7 306f 0b89 fe67 af01 ec2b 
01:31:37 ssh,debug,packet b877 259d 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug auth req: myuserteste ssh-connection password 
01:31:37 ssh,debug auth retry: 3 
01:31:37 ssh,debug next auth methods: password 
01:31:37 ssh,debug,packet packet create: 51 
01:31:37 ssh,debug,packet ----- sending -----  
01:31:37 ssh,debug,packet => offset:52 [0x34] 
01:31:37 ssh,debug,packet => size:34 [0x34] 
01:31:37 ssh,debug,packet 0000 001c 0d33 0000 0008 7061 7373 776f 
01:31:37 ssh,debug,packet 7264 00c6 cd42 d6e9 156a 94fe de73 4fc4 
01:31:37 ssh,debug,packet 07b2 b190 dea3 1878 f659 dd84 710a 8d05 
01:31:37 ssh,debug,packet e3c3 757e 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug,packet ----- recieved ----- 
01:31:37 ssh,debug,packet => offset:54 [0x54] 
01:31:37 ssh,debug,packet => size:54 [0x54] 
01:31:37 ssh,debug,packet 0000 003c 0d32 0000 0006 7468 6961 676f 
01:31:37 ssh,debug,packet 0000 000e 7373 682d 636f 6e6e 6563 7469 
01:31:37 ssh,debug,packet 6f6e 0000 0008 7061 7373 776f 7264 0000 
01:31:37 ssh,debug,packet 0000 0007 79bf cfce 6878 04dd a76d 6f28 
01:31:37 ssh,debug,packet aa49 f083 c628 5170 8671 5da3 3a0c d74e 
01:31:37 ssh,debug,packet 25ed 62db 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug auth req: myuserteste ssh-connection password 
01:31:37 ssh,debug auth retry: 4 
01:31:37 ssh,debug next auth methods: password 
01:31:37 ssh,debug,packet packet create: 51 
01:31:37 ssh,debug,packet ----- sending -----  
01:31:37 ssh,debug,packet => offset:52 [0x34] 
01:31:37 ssh,debug,packet => size:34 [0x34] 
01:31:37 ssh,debug,packet 0000 001c 0d33 0000 0008 7061 7373 776f 
01:31:37 ssh,debug,packet 7264 00a1 0947 96e7 6b67 7b38 8b3e 3f13 
01:31:37 ssh,debug,packet 5dbe 8fb4 f021 17aa 1ba7 68e8 2ccb a29c 
01:31:37 ssh,debug,packet 7253 0012 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug,packet ----- recieved ----- 
01:31:37 ssh,debug,packet => offset:54 [0x54] 
01:31:37 ssh,debug,packet => size:54 [0x54] 
01:31:37 ssh,debug,packet 0000 003c 0d32 0000 0006 7468 6961 676f 
01:31:37 ssh,debug,packet 0000 000e 7373 682d 636f 6e6e 6563 7469 
01:31:37 ssh,debug,packet 6f6e 0000 0008 7061 7373 776f 7264 0000 
01:31:37 ssh,debug,packet 0000 00f1 9b0c f1d2 1061 d1e6 4f49 ea96 
01:31:37 ssh,debug,packet b22e 9c35 5527 0b39 37e1 f93b 0a72 86df 
01:31:37 ssh,debug,packet b88f ba7b 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug auth req: myuserteste ssh-connection password 
01:31:37 ssh,debug auth retry: 5 
01:31:37 ssh,debug next auth methods: password 
01:31:37 ssh,debug,packet packet create: 51 
01:31:37 ssh,debug,packet ----- sending -----  
01:31:37 ssh,debug,packet => offset:52 [0x34] 
01:31:37 ssh,debug,packet => size:34 [0x34] 
01:31:37 ssh,debug,packet 0000 001c 0d33 0000 0008 7061 7373 776f 
01:31:37 ssh,debug,packet 7264 0078 8dda 9b41 e6e0 5b7f af91 bc5e 
01:31:37 ssh,debug,packet 097a c7e1 00e9 084c 208c 3739 bdd2 8f62 
01:31:37 ssh,debug,packet fb50 d50e 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug,packet ----- recieved ----- 
01:31:37 ssh,debug,packet => offset:54 [0x54] 
01:31:37 ssh,debug,packet => size:54 [0x54] 
01:31:37 ssh,debug,packet 0000 003c 0d32 0000 0006 7468 6961 676f 
01:31:37 ssh,debug,packet 0000 000e 7373 682d 636f 6e6e 6563 7469 
01:31:37 ssh,debug,packet 6f6e 0000 0008 7061 7373 776f 7264 0000 
01:31:37 ssh,debug,packet 0000 003b 7edb 1e3e 3936 2b3f 0546 6051 
01:31:37 ssh,debug,packet bdd8 6942 7fe8 d25d 1ec4 7132 4f73 d7fd 
01:31:37 ssh,debug,packet 7d68 2808 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug auth req: myuserteste ssh-connection password 
01:31:37 ssh,debug auth retry: 6 
01:31:37 ssh,debug code 0x0300000e closing.. 
01:31:37 ssh,debug,packet packet create: 1 
01:31:37 ssh,debug,packet ----- sending -----  
01:31:37 ssh,debug,packet => offset:52 [0x34] 
01:31:37 ssh,debug,packet => size:34 [0x34] 
01:31:37 ssh,debug,packet 0000 001c 0e01 0000 000e 0000 0000 0000 
01:31:37 ssh,debug,packet 0000 2672 1b6f a506 66c8 14e4 3767 1ca6 
01:31:37 ssh,debug,packet fb17 e77d 01cd 8b0d 319a 31aa b2f4 b48e 
01:31:37 ssh,debug,packet f495 bff8 
01:31:37 ssh,debug,packet -------------------- 
01:31:37 ssh,debug transport state: 4 --> 0 
01:31:37 ssh,debug closing connection: <> 10.100.100.1:53039 (6)


 
pe1chl
Forum Guru
Forum Guru
Posts: 6175
Joined: Mon Jun 08, 2015 12:09 pm

Re: Hotspot script to send data via ssh doesn't work

Sun Jan 12, 2020 12:25 pm

I think it is not possible to use /system ssh in a script. But at the moment I cannot find a reference for that.
 
bgpro
just joined
Topic Author
Posts: 9
Joined: Mon Jul 15, 2019 12:57 am

Re: Hotspot script to send data via ssh doesn't work

Sun Jan 12, 2020 3:03 pm

I think it is not possible to use /system ssh in a script. But at the moment I cannot find a reference for that.
ssh-exec work in terminal and Scripts but dont work in Hotspot Scripts.

Who is online

Users browsing this forum: No registered users and 21 guests