sshd config for individual shell user

Discussion in 'Installation/Configuration' started by Robetus, Feb 24, 2023.

  1. Robetus

    Robetus Member

    Is it possible to add a different sshd_config to each individual shell user for different configuration? How can I achieve this? Using ISPConfig v3.2.9 on Ubuntu 22.04.
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Which config do you want to customize?
     
  3. Robetus

    Robetus Member

    Things like timeouts and max sessions inside the sshd_config.
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You can set it like this in the sshd_config file:
    Code:
    Match User Thom
      PasswordAuthentication no
    
    Match User Till
      PasswordAuthentication yes
    
     
    ahrasis likes this.
  5. Robetus

    Robetus Member

    Okay and if I do not set a User in sshd config then the settings in sshd config will be universal to all users in ISPConfig or only root?
     
    ahrasis likes this.
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    If you do not set it for a user, the global setting will be used.
     
    ahrasis likes this.
  7. Robetus

    Robetus Member

    Thank you for your help.
     

Share This Page