# User for One Domain with SSH Keys?

**URL:** <https://forum.virtualmin.com/t/user-for-one-domain-with-ssh-keys/61690>\
**Category:** Virtualmin\
**Created:** [December 13, 2019, 3:18am UTC](https://forum.virtualmin.com/t/user-for-one-domain-with-ssh-keys/61690 "2019-12-13T03:18:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![katir](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/k/ce7236/32.png) [@katir](https://forum.virtualmin.com/u/katir)\
**Post date:** [December 13, 2019, 3:18am UTC](https://forum.virtualmin.com/t/user-for-one-domain-with-ssh-keys/61690/1 "2019-12-13T03:18:08Z")

</div>

System: Ubuntu 18.14. with about 8 virtual servers, all on shared IP

1. I went to /home/##mydomain##
2. Created a folder: .ssh # permission 755
3. created file: authorized\_keys # permission 644
4. pasted in the pub keys from (e.g) Paul, Rajan, Arjun

Now I would let to give, for this one domain only (home/##mydomain##),  
access via SFTP and ssh from terminal to just that one virtualMin server folder only: home/##mydomain##

I can get in because I have my pub key installed at /etc/ssh/… etc

ssh root@##mydomain##

I end up some the root directory (not /home/##mydomain##)

I want these users to log in and the only folder they can see is “/home/##mydomain##”

a) Do I Need to add them as users in VirtualMin?  
b) There is no setting in the “Add Users” (for the one ##mydomain## VirtualServer, )

where I can say: “Allow this user access with SSH Keys”  
c) in the terminal, what would they put?

sss ####@##mydomain##

?  
SFTP is straight forward. Most FTP clients allow you to paste in the pub key into connection settings. That’s all there is to it.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 6:12am UTC](https://forum.virtualmin.com/t/user-for-one-domain-with-ssh-keys/61690/2 "2020-04-30T06:12:12Z")

</div>

Closed on April 30, 2020, 6:12am UTC


