USG Flex 200 and SSH commands

IWAT
IWAT Posts: 15  Freshman Member
First Comment First Anniversary

Is it possible to send commands to the USG 200 via ssh?
The use case is to activate and deactivate easily Security Policy and time schedules.

I have tried it with putty and plink.exe, but it didn't work:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (Using username "testadmin".:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError -- Keyboard-interactive authentication prompts from server: -------------------- End of keyboard-interactive prompts from server ---------------------------

Accepted Solution

  • zyman2008
    zyman2008 Posts: 236  Master Member
    50 Answers First Comment Friend Collector Eighth Anniversary
    edited September 24 Answer ✓

    Hi @IWAT ,

    Put commands in a text file. Then run plink with the CLI file.
    CLI file example:

    configure terminal
    hostname ABC
    address-object AAA 1.1.1.1
    write
    exit
    exit
    
    plink -ssh -no-antispoof admin@192.168.1.1 -pw mypassword < cli.txt
    

All Replies

  • zyman2008
    zyman2008 Posts: 236  Master Member
    50 Answers First Comment Friend Collector Eighth Anniversary
    edited September 24 Answer ✓

    Hi @IWAT ,

    Put commands in a text file. Then run plink with the CLI file.
    CLI file example:

    configure terminal
    hostname ABC
    address-object AAA 1.1.1.1
    write
    exit
    exit
    
    plink -ssh -no-antispoof admin@192.168.1.1 -pw mypassword < cli.txt
    
  • IWAT
    IWAT Posts: 15  Freshman Member
    First Comment First Anniversary

    Thank you!
    It works.