Comment Favourite sshisms (Score 1) 2362
My favourite ssh thing to do is database dump/import over ssh:
ssh user@remotehost 'psql "COPY mytable TO STDOUT"' | psql "COPY mytable FROM STDIN"
Remote device images are also win:
ssh user@remotehost 'dd if=/dev/hda1' > sdb.iso
mkdir -p/mnt/iso
mount -o loop sdb.iso/mnt/iso
ls/mnt/iso # Win!
Not to mention combining ssh tunnel with more ssh tunneling and then more ssh! Mmm, ssh. Almost as awesome as netcat. - shazow