Controllerless Networks

 View Only
Expand all | Collapse all

[ERROR] Received SSH_MSG_DISCONNECT: 2:Only cli connections are allowed to the AP

This thread has been viewed 4 times
  • 1.  [ERROR] Received SSH_MSG_DISCONNECT: 2:Only cli connections are allowed to the AP

    Posted 29 days ago

    Hi All,

         wrote a sample application using C++ by using libssh (libssh-0.11.0) , which will create a session and connect to aruba device.

    and wanted to execute the CLI commands using the application, the api used ssh_channel_request_exec(channel, cmd) 

    where the 2nd parameter cmd of the API passing the CLI command, getting the below error, 

    ERROR:- Received SSH_MSG_DISCONNECT: 2:Only cli connections are allowed to the AP

    Thanks in advance!



  • 2.  RE: [ERROR] Received SSH_MSG_DISCONNECT: 2:Only cli connections are allowed to the AP

    Posted 29 days ago

    Only interactive login is supported to an Instant AP. You can't run a command. If you want to script commands, using something like expect or paramiko may help, but using a management system or API calls may be better than CLI scraping depending on the application. Not sure if expect/paramiko are available for C++.



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your HPE Aruba Networking partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact HPE Aruba Networking TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or HPE Aruba Networking.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------