Skip to main content
tbarua
Staff
Staff
June 29, 2026

Troubleshooting Tip: Consideration of SSH filter on SUSE server

  • June 29, 2026
  • 1 reply
  • 30 views

Description

This article describes how to resolve issues caused by an incompatible shell prompt format when using an SSH filter profile in FortiPAM with a SUSE server.

Scope

FortiPAM, SUSE server.


Solution

The issue arises due to the shell prompt format on the SUSE server, which may be incompatible with the SSH filter profile.

For example:

In the screenshot below, note that there is no space before running the 'sudo su' command.

3b27de37.png


To ensure proper functionality of the SSH filter profile, the 'sudo su' command must be executed in the terminal. However, this is not an expected requirement.

To resolve the issue, execute the following steps:

Step 1: Update the shell prompt on the SUSE server. Run the following steps on the SUSE server using any terminal:

vi /root/.bashrc


Add or update the following line:

export PS1='\u@\h:\w> '


Note: Ensure there is a space after '>'.

Apply the changes:

source /root/.bashrc


Step 2: Modify SSH filter profile in FortiPAM.

If the requirement is only logging (and not restricting commands), configure the SSH filter profile in non‑restricted mode:

config ssh-filter profile
    edit "new"
        set restricted-mode disable
    next
end


For a more complete configuration:

config ssh-filter profile
    edit "new"
        set block x11 exec port-forward tun-forward sftp unknown
        unset log
        set restricted-mode disable
        set default-command-log enable
    next
end


Note: If only session logging is required, it is recommended to disable restricted-mode to avoid command parsing issues. The shell prompt format must remain consistent to ensure proper SSH filter functionality.

    1 reply

    DanieleS99
    Explorer
    July 2, 2026

    Hi,

    I’m the author of this support ticket.

    Despite that the ticket is never been resolved, I don’t want that the name of our server is used in this forum community.

    Hide it.

     

    Thanks

    DanieleS99
    Explorer
    July 13, 2026

    ​@tbaruaÂ