• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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