Take a look into the file /usr/local/ispconfig/server/lib/config.inc.php on the slave, there you can find the mysql login details that this slaves uses for the connection to the master server (the part with the ispcsrv* user). Take these details (hostname, user and password as shown there) and use the "mysql" command to test the concetion form the slave: