--- ldm/src/plugins/ssh/ssh.c 2014-04-01 13:08:29.977015000 +0200 +++ trunk/src/plugins/ssh/ssh.c 2014-04-01 13:07:06.198890374 +0200 @@ -426,7 +426,7 @@ "-l", sshinfo->username, port ? port : "", sshinfo->sshoptions ? sshinfo->sshoptions : "", - sshinfo->server, "echo " SENTINEL "; exec /bin/sh -", NULL); + sshinfo->server, "'echo " SENTINEL " ; exec /bin/sh -'", NULL); log_entry("ssh",7,"ssh_session: %s", command); sshinfo->sshpid = ldm_spawn(command, NULL, NULL, ssh_tty_init);