How to check if SFTP is working in chroot environment

Created:

2016-11-16 12:41:38 UTC

Modified:

2017-08-08 13:29:41 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to check if SFTP is working in chroot environment

Applicable to:

  • Plesk 12.5 for Linux

Question

How to check if SFTP is working in chroot?

Answer

  1. Log in to the server under the user account:

    # ssh user@server.example.com
  2. Check the current directory. If should be / , not /var/www/vhosts/example.com :

    # pwd
  3. Check the user's shell. It should contain "chroot" in its path:

    # grep username /etc/passwd
    username:x:10150:505::/var/www/vhosts/example.com:/usr/local/psa/bin/chrootsh
Have more questions? Submit a request
Please sign in to leave a comment.