greycat 1288816196 learn If you have problems with scp, stop using scp and just use ssh directly. It far more robust than scp is. tar cf - dir | ssh user@host 'cd /somewhere && tar xf -' Stummi 1377084124 forget Stummi 1377084131 learn If you have problems with scp, stop using scp and just use ssh directly. Its far more robust than scp is. tar cf - dir | ssh user@host 'cd /somewhere && tar xf -' Stummi 1377084555 forget Stummi 1377084561 learn If you have problems with scp, stop using scp and just use ssh directly. It's far more robust than scp is. tar cf - dir | ssh user@host 'cd /somewhere && tar xf -' greycat 1555597163 forget greycat 1555597164 learn "The scp protocol is outdated, inflexible and not readily fixed." If you have problems with scp, stop using it. Consider sftp or rsync, or ssh u@h 'cat > remotefile' < localfile, or tar cf - dir | ssh u@h 'cd /somewhere && tar xf -'