adds chain `from` and replaces `system` to `exec_command` for ssh