Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

[Sophos XG] How to execute command by ssh in firewall ?

I want by clicking script send command to shutdown firewall. Simple? No. Im stuck on this default menu which prevents any ssh command to be executed directly from command line.

Is there any way to execute such command by ssh ? if not, can main menu be turned off somewhere in sophos settings ? i just want get to command line after being logged.



Added TAGs
[edited by: Erick Jan at 3:44 AM (GMT -8) on 9 Jan 2025]
Parents Reply
  • I do this all the time our devices in the lab and it works fine.  However I don't know if customer boxes are deployed differently.

    Note that when doing this you don't have a bash shell (which in SFOS is busybox), so you also don't have things like a path.

    ssh admin@10.0.0.1 '/bin/ls /etc/'

    ssh admin@10.0.0.1 '/bin/poweroff'


    You can add your ssh key for passwordless access in Administraton > Device access.

    EDIT: Seems this is not possible on customer devices.  Internal sophos labs works differently.

Children