[wp-trac] [WordPress Trac] #35946: ssh2/sftp doesn't work in chrooted environments
WordPress Trac
noreply at wordpress.org
Thu Feb 25 09:39:18 UTC 2016
#35946: ssh2/sftp doesn't work in chrooted environments
----------------------------+------------------------------
Reporter: aberbenni | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Filesystem API | Version: 4.4.2
Severity: major | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Changes (by aberbenni):
* severity: normal => major
Comment:
Ok, I'll test the patch on #35517.
In the meantime here is a follow up.
Installed and activated SSH SFTP Updater Support and then run fixed Wp FS
Tester:
{{{
Connection Method ssh2
ABSPATH /var/www/www.mydomain.com/website/
PLUGINDIR wp-content/plugins
FS Errors None
FS CWD This service allows sftp connections only. /
FS WordPress Locator Ricerca di /var/www/www.mydomain.com/website in
This service allows sftp connections only. /
Ricerca di /var/www/www.mydomain.com/website in /
Trovati /website
FS WordPress Location /website/
FS0 WordPress Locator (Old code)
}}}
{{{
PHP Fatal error: Uncaught Error: Call to a member function chdir() on
null in /var/www/www.mydomain.com/website/wp-content/plugins/ssh-sftp-
updater-support/class-wp-filesystem-ssh2.php:155
Stack trace:
/var/www/www.mydomain.com/website/wp-
content/plugins/wp-filesystem-tester.php(112):
WP_Filesystem_SSH2->chdir('This service al...')
/var/www/www.mydomain.com/website/wp-
includes/plugin.php(525): wsts_page('')
/var/www/www.mydomain.com/website/wp-
admin/admin.php(236): do_action('toplevel_page_w...')
{main}
thrown in
/var/www/www.mydomain.com/website/wp-content/plugins/ssh-sftp-updater-
support/class-wp-filesystem-ssh2.php on line 155
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35946#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list