Create one SSH user for multiple websites

Discussion in 'Installation/Configuration' started by ivanthegreat, Oct 27, 2022.

  1. ivanthegreat

    ivanthegreat New Member

    Hi guys,

    Is there a way to create one SSH user for multiple websites? Currently, each SSH user in ISPConfig is assigned to only one website. But instead of having to log in to each website with new SSH credentials, I wanted to find a way to manage multiple websites with just one SSH user/pass.

    I don't want to create sudo user, I want a regular user with access to just web folders of specific websites.

    One idea I had is to play with symlinks or change doc root of websites to one single folder with web subfolders. This way we can restrict access of one user to multiple websites.

    What would be your recommendations?

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    What you try to achieve is not recommended security wise. if one site gets hacked, the attacker will take over all sites. That#s why each site in ISPConfig runs as a different Linux user and therefore you need a different SSH user to manage it.

    If you want to have all site sunder the same user, use Vhost-Aliasdomains instead of having additional websites in ISPConfig.
     
    ahrasis likes this.

Share This Page