Vďaka, už som to asi vyriešil.
Poriešil som to cez MySQL databázu.
<?php
$connection = mysqli_connect("...", "sakulmore", "moje.heslo", "...", 3314);
$sql = "SELECT email, username, password, first_name, last_name FROM users_registrations";
$result = mysqli_query($connection, $sql);
if (mysqli_num_rows($result) > 0) {
$riadok = mysqli_fetch_assoc($result);
$username = $riadok['username'];
$email = $riadok['email'];
$pass = $riadok['password'];
$lastname = $riadok['last_name'];
$firstname = $riadok['first_name'];
$pripojssh2 = ssh2_connect('localhost');
ssh2_auth_password($pripojssh2, 'root', 'moje_heslo');
ssh2_exec($pripojssh2, "./create_user.sh $email $username $firstname $lastname $pass");
$delete = "DELETE FROM users_registrations WHERE 1";
mysqli_query($connection, $delete);
} else {
echo "Žiadny Klienti...";
}
mysqli_close($connection);
?>