unknown command during SSH script

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

unknown command during SSH script

L3 Networker

by testing a ssh skript i get an "unknown command" error from the CLI

 

user@host:~/> cat reset.sh 
ssh -t -t fw.domain.de << EOF
set cli pager off
show user ip-user-mapping all type CP
debug user-id reset captive-portal ip-address 1.2.3.4 
quit
EOF

user@host:~/> ./reset.sh 
Last login: Fri Jun  2 23:05:16 2023 from 10.10.10.11
set cli pager off
show user ip-user-mapping all type CP
debug user-id reset captive-portal ip-address 1.2.3.4 
quit

user@fw(active)> set cli pager off
user@fw(active)> show user ip-user-mapping all type CP

IP          Vsys    From    User   IdleTimeout(s) MaxTimeout(s)
----------- ------- ------- ------ -------------- -------------
1.2.3.4     vsys1   CP      willi  9007           9007         
Total: 1 users
3.4 @fw(active)> debug user-id reset captive-portal ip-address 1.2. 
Unknown command: debug
user@fw(active)> quit
Connection to fw.domain.de closed.

 

i tried several ssh operational variants and of course the command

debug user-id reset captive-portal ip-address 1.2.3.4

is working well on a normal ssh CLI

 

What goes wrong here? Why has the firewall such a weird CLI-Behaviour?

regards

Manfred Huels

1 accepted solution

Accepted Solutions

L3 Networker

The error message "unknown command" is confusing! The cause was insufficient rights (read-only superuser) of the user. Thank you for the helpful hint, Bechtle support!

 

View solution in original post

1 REPLY 1

L3 Networker

The error message "unknown command" is confusing! The cause was insufficient rights (read-only superuser) of the user. Thank you for the helpful hint, Bechtle support!

 

  • 1 accepted solution
  • 1628 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!