Added 'sshnokey' gateway to communicate using password authentication over ssh.
added sshnokey gateway to the remote.php in a way that it includes the terminal commands