Maybe we could build some automatism which stops the screenshot service while an ssh session is established.
MYSQL_PWD=password mysql -uuser db