• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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