Controllerless Networks

last person joined: yesterday 

Instant Mode - the controllerless Wi-Fi solution that's easy to set up, is loaded with security and smarts, and won't break your budget
Expand all | Collapse all

plink ssh tool onto an iAP VC+

This thread has been viewed 1 times
  • 1.  plink ssh tool onto an iAP VC+

    Posted Dec 04, 2014 10:19 AM

    Hi

     

    I am trying to run plink, the ssh command line utility from the putty set, to login to an iAP VC and execute some commands. I have got all the login part working but can't get any of the commands to execute, let alone the pipe to an output file.

     

    plink USERNAME@IPADDRESS -pw PASSWORD  < help.txt >> output.txt

     

    I've followed a lot of online examples but always get an error 137. Looks like the iAP is refusing the passing of the commands?

     

    Any help appreciated.

     

    Regards

     

    Chris

     

     



  • 2.  RE: plink ssh tool onto an iAP VC+

    EMPLOYEE
    Posted Dec 04, 2014 10:28 AM

    Unfortunately,

     

    The commandline is interactive and would requre a tool like expect to script most interactions.  Plink is good for connecting to a device, but it is not good for scripting in an interactive session (http://the.earth.li/~sgtatham/putty/0.52/htmldoc/Chapter7.html)

     

    You would probably want to use TCL/Expect:  http://linux.about.com/od/softorther/a/Tcl-Expect-For-Windows-Linux-Interaction.htm