SSH and pipelines

A few tips about combining pipelines and ssh.


Tared scp

Faster when you have many files.

neze@neze ~$ tar czf - *.txt | ssh vps 'tar xzf -'

Other operations

neze@neze ~$ ssh vps 'cat .ssh/id_rsa.pub' | ssh peugeot 'cat - >> .ssh/authorized_keys'