• 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.

[SOLVED] SFTP: Chrooted SFTP not working (CentOS 7)

danmatter

New Pleskian
Hi everyone

Since the migration from Plesk 11.5 to Plesk 12.0 the "chrooted" SFTP accounts do not work anymore. Along with the Plesk migration we have changed the operating system too. We've migrated from CentOS 6 (x86_64) to CentOS 7 (x86_64).

When trying to connect using SFTP on the command line I get the following error message:
debug1: Exit status 127

When using an SFTP client such as WinSCP I get logged out immediately without any message.

The OpenSSH configuration is saying:
<...>
Subsystem sftp /usr/libexec/openssh/sftp-server
<...>

The mentioned binary from above does exist:
ls -l /usr/libexec/openssh/sftp-server
-rwxr-xr-x 1 root root 83984 2015-05-12 21:41:56 /usr/libexec/openssh/sftp-server

I have attached the debug output of the SFTP command (plesk_sftp_issue.txt).

When I change the option "Access to the server over SSH" to "/bin/bash" the SFTP access works again. But when "chrooted" it stops working.

Is anyone else experiencing the same issue with Plesk 12 under CentOS 7?

Please let me know if you need additional information.

Thank you for your help.
 

Attachments

  • plesk_sftp_issue.txt
    8.9 KB · Views: 12
  • 01_sftp.PNG
    01_sftp.PNG
    13.6 KB · Views: 10
  • 02_sftp.PNG
    02_sftp.PNG
    39.7 KB · Views: 9
I might have a solution, in case anyone else is experiencing the same issue.

The "Migration & Transfer Manager" somehow migrated old libraries from CentOS 6 to CentOS 7. It copied/synced the following directory to the new server:
/var/www/vhosts/chroot/

The directory is holding libraries which were outdated on CentOS 7:
/var/www/vhosts/chroot/usr/lib/
/var/www/vhosts/chroot/usr/lib64/

Make sure your "libnss_*.so" libraries are not from an old installation i.e. CentOS 6.

HTH
 
I might have a solution, in case anyone else is experiencing the same issue.

The "Migration & Transfer Manager" somehow migrated old libraries from CentOS 6 to CentOS 7. It copied/synced the following directory to the new server:
/var/www/vhosts/chroot/

The directory is holding libraries which were outdated on CentOS 7:
/var/www/vhosts/chroot/usr/lib/
/var/www/vhosts/chroot/usr/lib64/

Make sure your "libnss_*.so" libraries are not from an old installation i.e. CentOS 6.

HTH

Hey, can you elaborate on all the steps you took to fix this? I have the exact same issue.

Did you move files around or just link to the proper places?
 
Back
Top