Accessing to mysql via cli from ssh connection (site user) throws a mysql socket error: ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2) Can a site user do that? Have I to activate something? thanks.
A site user can do that and there is nothing that needs to be activated, you just have to use the correct commandline options for mysql command. You probably use a jailed SSH user, which is good. But the mysql socket is not available in the jail, so you must connect to the localhost IP 127.0.0.1 instead of the socket. Example: Code: mysql -h 127.0.0.1 -u username -p < sqldump.sql
Yes, as the socket is a file that is outside of the jail, it can not be accessed when you enable jailkit for an SSH user.