FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
396 views 0 comments
by anonymous

Hello,

I have an ssh command that I  use to establish an ssh tunnel to a machine and I already do that on my rooted android phone and it works just like a VPN, I handle addressing and routing on both ends manually for the tun0 interfaces created on both ends by this command.

I got the RUTX11 and I was hoping to do this on it, but the command is not working.

root@Teltonika-RUTX11:~# ssh -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -w0:0 root@IP

ssh: Ignoring unknown configuration option 'ServerAliveInterval=60'

ssh: Ignoring unknown configuration option 'StrictHostKeyChecking=no'

WARNING: Ignoring unknown option -w

WARNING: Ignoring unknown option -0

WARNING: Ignoring unknown option -:

WARNING: Ignoring unknown option -0

from OpenSSH SSH client man page

-w local_tun[:remote_tun]

Requests tunnel device forwarding with the specified tun(4) devices between the client (local_tun) and the server (remote_tun).

The devices may be specified by numerical ID or the keyword “any”, which uses the next available tunnel device.  If remote_tun is not specified, it defaults to “any”.  See also the Tunnel and TunnelDevice directives in ssh_config(5).  If the Tunnel directive is unset, it is set to the default tunnel mode, which is  “point-to-point”.

Apparently you are using Dropbear SSH client v2019.78 https://matt.ucc.asn.au/dropbear/dropbear.html

Which does not support all OpenSSH features.

I found this question:

https://community.teltonika-networks.com/37638/dropbear-teltonika-access-device-connected-teltonika-router

suggesting commands:

opkg update

opkg install openssh-client openssh-client-utils

but that just broke ssh command and got:

Error relocating /usr/bin/ssh: explicit_bzero: symbol not found



Then I found this question:

https://community.teltonika-networks.com/35257/keygen-error-relocating-keygen-explicit_bzero-symbol-found?show=35261

Suggesting to compile these packages.

I followed this tutorial:

https://wiki.teltonika-networks.com/view/RUTX_Software_Development_Kit_instructions#Compiling_a_single_package

I installed Ubuntu 16.04 on a VM, Downloaded SDK,...

but that did not go well even for nano.

I was getting errors like:

Build dependency: Please install the GNU C Compiler (gcc) 4.8 or later
Build dependency: Please install the GNU C++ Compiler (g++) 4.8 or later

Long story short, I searched for solutions to these errors, Just to reveal new ones, some solutions involved manual files edits and it got messy.

I am asking for a revised updated "Compiling packages tutorial"

Or if possible a working repository for RUTX11.

My RUTX11 was updated to athe latest version.

Firmware version: RUTX_R_00.07.00

Firmware build date: 2021-07-14 09:37:49

Modem firmware version: EG06ELAR03A05M4G

Kernel version: 4.14.221

1 Answer

0 votes
by anonymous
Hello,

Use a recent Ubuntu to compile the SDK, the documentation is outdated.

Regards,