Mulitple SSH account for 1 directadmin

tan87

Verified User
Joined
Jul 7, 2019
Messages
20
I have this special request from an important client and they need multiple SSH to different folder under /home/username/

Example:
user1 - /home/username/folder1
user2 - /home/username/folder2

I understand that directadmin natively does not support, in this case, can I just use "useradd" to achieve this?
 
With Jailshell, it should be fine to give their SSH Access. just give it to user with Directadmin tools, don't give them with "useradd", or "usermod" or or anyelse.
 
Does it need to be admin account or just useraccount?

If it's just a useraccount, you can just give SSH access to the user package and then it's possible what you want.
They could use login keys to give multiple access.

With FTP it's even more easier because there you can specify which access is provides.
 
thanks both for replying.

The server belongs to this specific user only so no worries about jailshell.

@Richard G they don't want FTPS. That's the headache I'm facing. I need multiple SSH user to the same account because different SSH login access to different part of the folder.
 
You're not going to be able to restrict SSH access to just subfolders under a specific system user. It just doesn't work that way.

If you have two people that you want to give SSH access to without giving away the account's password, then you can set up SSH keys and use two different keys for each person.

But the first person is going to have read/write access to everything that person two has access to, and vice-versa.

You just can't split up a linux system user like this.
 
Back
Top