SSH Bypasses Netonix CLI depending on SSH client

DOWNLOAD THE LATEST FIRMWARE HERE
Garnet
Member
 
Posts: 71
Joined: Wed Jun 02, 2021 9:29 am
Has thanked: 2 times
Been thanked: 1 time

SSH Bypasses Netonix CLI depending on SSH client

Wed Jun 23, 2021 3:26 pm

Hello,

We've been testing what can be done with SSH on Netonix switch's. The test unit for this is a WS-12-250-DC running firmware version 1.5.8.

The Issue:
SSH via "normal clients" such as OpenSSH connect to the normal Netonix CLI, while clients that are Python Based (e.g. programmatic SSH) connect directly to the Linux CLI.

I verified this by running the help command via both clients while in the Linux CLI and both returned the same result. I attempted to simply exit the Linux Shell on the Python client (since the expected result of exit is to re-enter the Netonix CLI) however this had no effect (e.g. Client still had a Linux CLI).

Is this an issue that has come up before? I was only able to find one other post on the forums of someone attempting this (and I can't find the post anymore).

Garnet
Member
 
Posts: 71
Joined: Wed Jun 02, 2021 9:29 am
Has thanked: 2 times
Been thanked: 1 time

Re: SSH Bypasses Netonix CLI depending on SSH client

Thu Jun 24, 2021 10:53 am

Is there a command in the linux CLI to enter the Netonix CLI? It seems this is what the 'switch' command does however it only seems to work if you initially had access to the Netonix CLI. The same is true for the 'return' and 'exit' commands which will only return to the last shell you were in and have no effect when connecting directly to the linux CLI.

Garnet
Member
 
Posts: 71
Joined: Wed Jun 02, 2021 9:29 am
Has thanked: 2 times
Been thanked: 1 time

Re: SSH Bypasses Netonix CLI depending on SSH client

Thu Jun 24, 2021 11:45 am

Update: the switch command does work for dropping into the Netonix CLI, however it appears the piece of code that checks each character (e.g. to see if '?' has been pressed) also throws errors on every character.

EDIT: On every character two errors throw:
1. tcsetattr(): Invalid Argument
2. tcsetattr ICANON: Invalid argument

Return to Hardware and software issues

Who is online

Users browsing this forum: No registered users and 69 guests