modify cmd (option -C) for use with ssh