ssh + chroot  works for both root and user+sudo connections.