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
  • Nobody claims this is the only thing Sophos is doing to harden a system. 

    Again: The context menu is there since V15.0 (since the beginning). We simply removed the capabilities to run directly scripts / commands within one command, after the pacific Rim situation - See above. Also: At that time, after removal of the this command, a LOT of users had SSH open to the Internet. By now, most is restricted by the changes Sophos did. Open SSH, you could potentially run a command directly on the system was a big thing, which we removed by not letting somebody directly run it. Yes - People could do workarounds, but this was an easy "improvement" for a lot of customers to secure them.

    By now, we could potentially think about other ways: An approach would be to allow direct advanced shell access via SSH Key only.  

    Lets get back on track here: I am assuming, you as a power user are doing a lot on the Shell: Could you give us some context "what you are doing" on the advanced Shell? 

    __________________________________________________________________________________________________________________

Children
No Data