- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-02-2023 02:30 PM
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
06-05-2023 05:56 AM
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!
06-05-2023 05:56 AM
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!
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!