SHELL for connect in SSH the E500 with my routeur OPENWRT

Hi

I would like to send a request from my OPENWRT router to my E500 antenna

I would like to send the request in SHELL, and automatically in a BASH script to restart a client's WIFI session.

During a previous TOPIC, I was told to use the command :
##########
no wireless client xx-xx-xx-xx-xx-xx-xx (MAC client)

##########

But how to install the TOKEN SSHKEY on the E500?
OR do I need to make a connection with DROPBEAR?

Thank you for your answer.

Regards

Francesco


@VODAFONE_PF wrote:

Hi

I would like to send a request from my OPENWRT router to my E500 antenna

I would like to send the request in SHELL, and automatically in a BASH script to restart a client's WIFI session.

During a previous TOPIC, I was told to use the command :
##########
no wireless client xx-xx-xx-xx-xx-xx-xx (MAC client)

##########

But how to install the TOKEN SSHKEY on the E500?
OR do I need to make a connection with DROPBEAR?

Thank you for your answer.

Regards

Francesco


RADIUS dynamic authorization instead of this is really the right way to disconnect the user... but if the CLI is working best you can automate the connection to the AP using something like sshpass:

Eg:

sshpass -p admin ssh -o StrictHostKeyChecking=no admin@192.168.0.1 'no wireless client'

or check out Paramiko for more extensive support if python instead of bash is an option.