#!/bin/sh set -x ssh root@10.1.1.1 'tar xv --exclude dev/tty\*' < robot.tar # It doesn't work if we do not exclude dev/tty*. I do not have time to # find which exact tty* files casuses the problem.