• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Some quick question

D

desiguru

Guest
I recently installed plesk and I have some questions to ask.

1) How do I let my clients access the SSH?

2) If the client domain name is domain1.com. what is the whole/path/ from ssh to the main domain directory?
 
To answer your question.
1. don't give your shared hosting clients SSH, as in (no)
2. ok. I'll be nice and answer this. /var/www/vhosts/domain1.com

the only people who get access to SSH are dedicated server clients. everyone else seems to mess things up.

- Chris
64bithost.com
 
1) How do I let my clients access the SSH?

Domains -> [domain name] -> Setup -> set the 'Shell access to server with FTP user's credentials' to the shell you want to offer your client. I recommend setting this to the chrooted shell if that is enough for the client. For security I also recommend disabling PasswordAuthentication in your sshd_config after setting up public key authentication. Software that blocks brute force SSH attacks (DenyHosts, Fail2Ban or something similar) is also nice to have.

2) If the client domain name is domain1.com. what is the whole/path/ from ssh to the main domain directory?

After logging in the current working directory will be set to the homedir of the user, so your client will automatically get there.

The absolute path on the server will be HTTPD_VHOSTS_D/domain1.com. You can find the location of the vhosts directory (HTTPD_VHOSTS_D) in /etc/psa/psa.conf (as root):

Code:
# grep HTTPD_VHOSTS_D /etc/psa/psa.conf
HTTPD_VHOSTS_D /var/www/vhosts

On our CentOS boxes HTTPD_VHOSTS_D is /var/www/vhosts, so the absolute path would be /var/www/vhosts/domain1.com on our servers.

(You could also grep /etc/passwd for domain1.com and find its homedir that way.)
 
Back
Top