After updating to ISPConfig 3.0.5.4p6 directory for ssh logging is different : it was /var/www/site_name/ now it is /var/www/site_name/home/user_name. It s reason for fail authorization with ssh key because it search key in /var/www/site_name/.ssh/authorized_keys not in /var/www/site_name/home/user_name/.ssh/authorized_keys as was after updating and where ssh authorization key is locate. What directory is correct for ssh users: /var/www/site_name/ or /var/www/site_name/home/user_name/ ?
The correct directory is /var/www/site_name/home/user_name/ . The issue with the ssh keays is a know problem and alreyd listed in our bugtracker.
See release notes of the p6 release, there yo find a link to all bugs that got fixed in that release.
Sorry, but i can t find this bug there http://bugtracker.ispconfig.org/index.php?do=index&project=3&pagenum=2 Can you give me a link of this bug, please.
SSH user can write to home directory, but the problem is that the .ssh folder and authorized_keys files aren't copied over. I'm seeing this issue on several 3.0.5.4p6 servers.
Hi everybody. I am sorry, but I cannot understand why ssh users logs into /var/www/site_name/home/user_name/ and not into /var/www/site_name/. How is supposed a user to access to it's private, or web, folder with this configuration? Is it possible to config the behaviour? Thanks
Ok, I have found the answer by myself on this forum. The answers is listed here: https://www.howtoforge.com/community/threads/concerns-connection-via-ssh.70145/#post-330204 So, I have two solutions: use cd ../../ or enable jailkit for new users. Is this ok? Thanks
The homedirectory of a jailkit user is /home/username like any other linux ssh user, so you are in the same directory like a non jailed user. You then type: cd ../../ to go to the root directory of the website.